[opensuse-gnome] GTK File open/save dialogue won't respect theme colours and is rendered wrongly under KDE
Hi! I'm posting this to the Gnome list as I had no luck on the main opensuse list with this topic. Maybe some one here has a though to share on the problem. The problem is on openSUSE 10.3 while running KDE. Previously, on 9.3 and 10.2, I had always used the GTK theme HighContrastInverse for GTK apps. I had set it in the KDE control centre, and had never had any trouble with that. All was fine. Now, on a relatively fresh 10.3 installation, that setting (in GTK Styles component in KControl) no longer works. It sets exactly nothing, or at least the applications do not react to this setting. They simply launch with some default, whitish theme. I decided that the thing is faulty, and won't work. So I uninstalled the kcm-gtk-etc. rpm, which removed this menu entry. OK. Then I installed an app called gtk-chtheme (from Packman), that allows one to choose the GTK theme under KDE. It worked. But now there is a problem: The apps are rendered otherwise correctly, except that the GTK apps' Open/Save dialogue will not respect the HighContrastInverse theme-set colours. It's background is rendered with the right colour, but the file list has the default theme's whitish background, causing white text to be drawn on top of a very white background. The same applies to the other list on the left, the one that has "File System" and "Desktop" etc. links. The buttons and other widgets have the right colours on the dialogue. I've tried editing /usr/share/themes/HighContrastInverse/.../gtkrc, but nothing there affects the dialogue in any way (other parts of GTK applications do react as expected). The said dialogue simply ignores the colours on those two widgets. I also tried an older version of theme, whose colours I had manually edited and used on 10.2. It made no difference what so ever. I then tried other themes, too, even QT-GTK-something-Curve or something like that which was supposed to duplicate KDE colours on GTK. Well, it did. Except that the dialogue still had that same whitish background. It simply ignores anything any theme sets. I tried running Gnome, and there the HighContrastInverse (and others) show perfectly well. The said dialogue, too, is rendered correctly, and exactly like it was under KDE on 9.3 and 10.2 (except with my own version of the theme) I don't know what to do any more, or what to try. I even removed pretty much anything KFind found under my home directory tree with gtkrc in it (I searched for *gtkrc*), in order to rid KDE of any colour settings anywhere that the dialogue might inherit or something like that, but to no avail. I installed a clean 10.3, and did not upgrade over an older version or anything. So this should have worked out-of-the-box. Might any one know any reason this dialogue behaves the way it does? How could I investigate further? Here's a screenshot of the dialogue under KDE: https://secure.storegate.com/user/share.aspx?id=61d213fe-3c13-427b-8669- 6b098b9ef8dd Thanks for all ideas! And regards, Tero Pesonen -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
On Thu, 2008-01-31 at 05:50 +0200, Tero Pesonen wrote:
Previously, on 9.3 and 10.2, I had always used the GTK theme HighContrastInverse for GTK apps. I had set it in the KDE control centre, and had never had any trouble with that. All was fine.
Now, on a relatively fresh 10.3 installation, that setting (in GTK Styles component in KControl) no longer works. It sets exactly nothing, or at least the applications do not react to this setting. They simply launch with some default, whitish theme.
Hmmm, is gnome-settings-daemon running while you use your KDE session? I don't think it's necessary to have it running just to get the theme applied correctly, but better double-check... Federico -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
On Tuesday 05 February 2008, Federico Mena Quintero wrote:
On Thu, 2008-01-31 at 05:50 +0200, Tero Pesonen wrote:
Previously, on 9.3 and 10.2, I had always used the GTK theme HighContrastInverse for GTK apps. I had set it in the KDE control centre, and had never had any trouble with that. All was fine.
Now, on a relatively fresh 10.3 installation, that setting (in GTK Styles component in KControl) no longer works. It sets exactly nothing, or at least the applications do not react to this setting. They simply launch with some default, whitish theme.
Hmmm, is gnome-settings-daemon running while you use your KDE session?
I don't think it's necessary to have it running just to get the theme applied correctly, but better double-check...
Thanks for your reply, Federico. Just this night I had time to again investigate this. I actually got the issue solved, and this is what I found. I simply searched for every single .gtkrc on my system, in order to check each and every one of them and see what is set and where (the apps need to check their settings from somewhere!) There was, of course, one in /etc/gtk-2.0. That file set something very different to the expected HighContrastInverse. I figured that the problematic dialogue or some other parts or applications look at this file instead of what is defined in my home dir. And sure enough, setting the theme also in the /etc/gtk-2.0/ cured the problem for once and for all. The weird thing here was that some parts of the apps respected the settings at my home dir, while others seemed to look at this file. Curiously, too, whatever the SUSE-supplied KDE KControl Centre set in regards to GTK, had no effect on this file (well, it would not have the permissions either to change it.) All the GTK apps were from 10.3 RPMS's from openSUSE repositories. My guess is that there is something buggy going on in how openSUSE 10.3 is designed to deal with this KDE/GTK interaction. It did not work out of the box, nor after tweaking all the possible *gtk* found under my home dir, but instead started working only after I had set the theme with root privileges in this system-wide default etc. config file. This should not have to be: Setting desktop themes is not something you need superuser for. Nor was this ever an issue on earlier openSUSE versions, and I definitely did not use root privileges to set themes there. Whatever KDE with my user rights set, applied for all GTK apps under KDE without any hiccups on 10.2 and 9.x But, as said, it now works for me, and I know how to set it. I wonder, though, if this is something worth of a bug report, or whether something had got screwed-up on my system during the installation and the security etc. updates that followed it? I mean, surely others, too, would have complained if this was the normal state for 10.3? And since no one has, (I couldn't find, at least) it seems there was something weird going on at my end. Regards, Tero Pesonen -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
On Tue, 2008-02-05 at 02:52 +0200, Tero Pesonen wrote:
But, as said, it now works for me, and I know how to set it. I wonder, though, if this is something worth of a bug report, or whether something had got screwed-up on my system during the installation and the security etc. updates that followed it? I mean, surely others, too, would have complained if this was the normal state for 10.3? And since no one has, (I couldn't find, at least) it seems there was something weird going on at my end.
Yeah, please file a bug. It's probably some screw-up in our stock configuration. Federico -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
participants (2)
-
Federico Mena Quintero
-
Tero Pesonen