Getting GTK XWayland applications to use the system's GTK theme

Solerman Kaplon solerman at gmail.com
Mon Mar 4 05:01:59 PST 2013


Em 03-03-2013 13:39, Bill Spitzak escreveu:
> On 03/03/2013 12:04 AM, Scott Moreau wrote:
>> Hi Rune,
>>
> I believe he is complaining about the different client-drawn items. Compare 
> the "All Settings" button in System Settings to the buttons in the "Synaptic 
> Package Manager". It seems that some Ubuntu programs are drawing with the 
> correct theme (the System Settings) and some are not.
>
> The fact is the toytoolkit window borders look just fine with the ubuntu 
> theme. Chrome is the only program drawing it's own window borders, and this is 
> identical to how it works under X, so he is not complaining about this.
>
> "How to find the theme" is infuriatingly complex in GTK and Gnome, and I think 
> the fact that some environment variables are set different is causing the 
> problem. This has nothing to do with xwayland, all the relevant code is in the 
> X clients. It looks like some find it, but others don't and fall back to the 
> default (the gray one with thicker 3D borders). Also Chrome attempts to figure 
> out what the GTK theme is and copy it, and it looks like it is also failing to 
> find it.

I think synaptic run as root, and the theme ain't the same for that profile.

Solerman


More information about the wayland-devel mailing list