GTK window not showing close ,maximize and minimize icons

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

GTK window not showing close ,maximize and minimize icons

跳至解决方案
2,521 次查看
el14
Contributor II

Hi All,

I am working on an application using gtk in the weston compositor . While running the application the close ,maximise and minimise icons are not showing . But it is showing in the NXP demo experience app.

Any one have idea in wayland systems.

This same code when compiled and run in ubuntu laptop works fine.

0 项奖励
回复
1 解答
2,463 次查看
el14
Contributor II

Hi All,

The issue was solved by adding the index.theme file to the icons directory.

在原帖中查看解决方案

4 回复数
2,501 次查看
el14
Contributor II

how to change the location for icons ,in gtk

0 项奖励
回复
2,504 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello el14,

GTK resizes the icons to whatever size they need to be. According to the Icon Theme Specification, you should make at least one 48x48 icon, and optionally a scalable SVG icon. That is enough to be able to display any of those sizes.

The Tango Icon Theme Guidelines recommend some supplementary sizes that you can make, in order to minimize how often the icon has to be resized internally by GTK.

 

Regards

0 项奖励
回复
2,474 次查看
el14
Contributor II

Hi

Do we have an option to set the icons through code ?

 

currently while calling the function ' window = gtk_window_new(GTK_WINDOW_TOPLEVEL); '

the window is generated with all default decorations in ubuntu. But in wayland system with weston the decorations are not set.

标记 (1)
0 项奖励
回复
2,464 次查看
el14
Contributor II

Hi All,

The issue was solved by adding the index.theme file to the icons directory.