GTK window not showing close ,maximize and minimize icons

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GTK window not showing close ,maximize and minimize icons

ソリューションへジャンプ
3,062件の閲覧回数
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 解決策
3,004件の閲覧回数
el14
Contributor II

Hi All,

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

元の投稿で解決策を見る

4 返答(返信)
3,042件の閲覧回数
el14
Contributor II

how to change the location for icons ,in gtk

0 件の賞賛
返信
3,045件の閲覧回数
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 件の賞賛
返信
3,015件の閲覧回数
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 件の賞賛
返信
3,005件の閲覧回数
el14
Contributor II

Hi All,

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