[poky] Using gnome icons

Burton, Ross ross.burton at intel.com
Mon Jan 21 04:25:04 PST 2013


On 21 January 2013 11:47, Gary Thomas <gary at mlbassoc.com> wrote:
>> 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



More information about the poky mailing list