GTK window not showing close ,maximize and minimize icons

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GTK window not showing close ,maximize and minimize icons

Jump to solution
2,211 Views
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 Kudos
1 Solution
2,153 Views
el14
Contributor II

Hi All,

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

View solution in original post

4 Replies
2,191 Views
el14
Contributor II

how to change the location for icons ,in gtk

0 Kudos
2,194 Views
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 Kudos
2,164 Views
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.

Tags (1)
0 Kudos
2,154 Views
el14
Contributor II

Hi All,

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