Using gnome icons
I have an image based on core-image-sato. How can I enable this to use the full gnome icon set? e.g. I run an application which uses GTK+ directly which has a button using GTK_STOCK_MEDIA_RECORD On my Sato based device, this button just says 'Record' whereas on my desktop it shows with a nice red record icon.
Is there a way to make this work on my Poky/Yocto based system?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 7 lines · Gary Thomas
I have an image based on core-image-sato. How can I enable this to use the full gnome icon set? e.g. I run an application which uses GTK+ directly which has a button using
GTK_STOCK_MEDIA_RECORDOn my Sato based device, this button just says 'Record' whereas on my desktop it shows with a nice red record icon.Is there a way to make this work on my Poky/Yocto based system?
Did your image include the gnome-icon-theme package?
Ross
Quoted 10 lines · Ross
Quoted 7 lines · Gary Thomas
I have an image based on core-image-sato. How can I enable this to use the full gnome icon set? e.g. I run an application which uses GTK+ directly which has a button using
GTK_STOCK_MEDIA_RECORDOn my Sato based device, this button just says 'Record' whereas on my desktop it shows with a nice red record icon.Is there a way to make this work on my Poky/Yocto based system?
Did your image include the gnome-icon-theme package?
Yes (actually I added it post build but it should be the same)
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 3 lines · Gary Thomas
Quoted 1 line
Did your image include the gnome-icon-theme package?
Yes (actually I added it post build but it should be the same)
Hmph. Danny or Denzil?
Ross
Quoted 6 lines · Ross
Quoted 3 lines · Gary Thomas
Quoted 1 line
Did your image include the gnome-icon-theme package?
Yes (actually I added it post build but it should be the same)
Hmph. Danny or Denzil?
Master :-)
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 3 lines · Gary Thomas
Quoted 1 line
Hmph. Danny or Denzil?
Master :-)
Good man, I like your style!
What application is this? The core apps in Sato are somewhat tuned for the Sato experience which makes this tricky to replicate easily. I thought there might be a tunable for the button style that we're overriding, but I can't see anything obvious.
Ross
Quoted 11 lines · Ross
Quoted 3 lines · Gary Thomas
Quoted 1 line
Hmph. Danny or Denzil?
Master :-)
Good man, I like your style!
What application is this? The core apps in Sato are somewhat tuned for the Sato experience which makes this tricky to replicate easily. I thought there might be a tunable for the button style that we're overriding, but I can't see anything obvious.
Home grown using pygtk and gtk.glade. If you want to try it, I can send an example separately.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 7 lines · Gary Thomas
Quoted 4 lines
What application is this? The core apps in Sato are somewhat tuned for the Sato experience which makes this tricky to replicate easily. I thought there might be a tunable for the button style that we're overriding, but I can't see anything obvious.
Home grown using pygtk and gtk.glade. If you want to try it, I can send an example separately.
That would be useful, this is confusing me.
Ross
Quoted 5 lines · Gary Thomas
I have an image based on core-image-sato. How can I enable this to use the full gnome icon set? e.g. I run an application which uses GTK+ directly which has a button using
GTK_STOCK_MEDIA_RECORDOn my Sato based device, this button just says 'Record' whereas on my desktop it shows with a nice red record icon.
Gtk has a config option for that (icons beside button text). You might need to turn it on.
jesse
Quoted 9 lines · Jesse Zhang
Quoted 5 lines · Gary Thomas
I have an image based on core-image-sato. How can I enable this to use the full gnome icon set? e.g. I run an application which uses GTK+ directly which has a button using
GTK_STOCK_MEDIA_RECORDOn my Sato based device, this button just says 'Record' whereas on my desktop it shows with a nice red record icon.Gtk has a config option for that (icons beside button text). You might need to turn it on.
It seems to be much more complicated than this. If I run my application using the native X server, i.e. on my embedded LCD, I get on the simple "record" text in the button. However, if I run the same application on the embedded unit, but the display is remote (e.g. on my desktop using ssh -X), I get a button with icons.
Something very tricky is afoot here...
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 10 lines · Gary Thomas
Quoted 2 lines
Gtk has a config option for that (icons beside button text). You might need to turn it on.
It seems to be much more complicated than this. If I run my application using the native X server, i.e. on my embedded LCD, I get on the simple "record" text in the button. However, if I run the same application on the embedded unit, but the display is remote (e.g. on my desktop using ssh -X), I get a button with icons.
Something very tricky is afoot here...
As I said earlier, this configuration option is generally controlled by a root window property (this is "xsettings"). Digging around shows that it wasn't being set by any of our xsettings code, but then I remembered that it can also be overridden by the GTK+ theme:
http://git.yoctoproject.org/cgit/cgit.cgi/gtk-sato-engine/tree/data/gtkrc-vga
The Sato theme turns it off. Feel free to patch out gtk-button-images=0 in your system.
You got the button images when you run it on the device but with DISPLAY over SSH because it's again using xsettings to detect the theme to use, doesn't have whatever your desktop is using, and falls back to Raleigh, which doesn't set this option.
Ross