GTK themes doesn't work properly in KDE4

Bug #188415 reported by travkin
38
Affects Status Importance Assigned to Milestone
GTK-Qt Theme Engine
Fix Released
Unknown
gtk-qt-engine (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Kubuntu 7.10/8.04. It's doesn't work.

Tags: kde4
Revision history for this message
Daniel Hahler (blueyed) wrote :

Please be more verbose in bug reports.
I suppose you have gtk-qt-engine installed? If so, I can confirm that it _mostly_ does not work. All of a sudden though, the GTK apps (Firefox, Thunderbird mainly in my case), get themed.

Revision history for this message
David Sansome (me-davidsansome) wrote :

I'm currently working on supporting Qt4 styles in Gtk-Qt. See upstream bug report: http://gtk-qt.ecs.soton.ac.uk/trac/ticket/49

Changed in gtk-qt-engine:
status: Unknown → Confirmed
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

David, I was wondering if there is any progress on the gtk-qt4 engine. Is there any chance it will be ready in the next couple of weeks to get it into hardy? (with UVFe)

Also, looks like somebody made something similar here: http://www.kde-look.org/content/show.php/gtk-kde4?content=74689
I haven't gotten that one to work though.

Revision history for this message
David Sansome (me-davidsansome) wrote :

It's working quite nicely at the moment - all the important widgets get themed properly.
There are still a couple of crashes and bits of odd behaviour when you use it within Gnome, which I think will need to be fixed before we can include it in Hardy.
I'll continue working on it and keep you posted.

I've spoken with the author of GTK-KDE4. It's a script that grabs snapshots of Qt widgets and saves them to make a GTK pixmap theme. Since it doesn't actually use its own theme engine I don't think it will ever be able to be totally accurate, but what I've seen of it does look quite good.
We decided that since we're taking two completely different approaches there wasn't much point merging projects.

Revision history for this message
David Sansome (me-davidsansome) wrote :

I've released a new version which works with KDE4. It's available in the normal place: http://gtk-qt.ecs.soton.ac.uk/downloads.php
I've fixed all the showstopper bugs I could find - it doesn't crash under Gnome any more but I've had to make it disable itself under gnome-panel, which means the panels don't get themed at all and look quite strange. However GTK apps running a KDE4 desktop look perfect.

How do you want to name the new package? At the moment the GTK theme is still called "Qt", which is the same as the old Qt3 version. Do you think there will be a situation where a user will want both installed at the same time? Can we mark the new gtk-qt4-engine package as conflicting with the old one?

Revision history for this message
Jonathan Riddell (jr) wrote :

There will be people have have both KDE 3 and 4 installed and will switch between the two. Ideally the two packages would be co-installable and the right one would be used by GTK depending on the full session KDE desktop.

Revision history for this message
David Sansome (me-davidsansome) wrote :

A couple of things will need to be changed to allow that to happen:
 * Renaming the GTK theme to "Qt4"
 * Get the KCM to look for "Qt4" instead of "Qt"
 * Change the name of the gtkrc file written by the KCM, maybe to ~/.gtkrc-2.0-kde4

I'll produce a patch that does this and upload it here in a little while...

Revision history for this message
David Sansome (me-davidsansome) wrote :

Done! New version's here with the version 1.1: http://gtk-qt.ecs.soton.ac.uk/files/1.1/gtk-qt-engine-1.1.tar.bz2
Tested on Hardy - it's possible to select the Qt4 style in KDE4 and the Qt style in KDE3 and have them exist happily side by side.

Changed in gtk-qt-engine:
status: Confirmed → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :

I've not tried the new gtk-qt-engine, but have discovered that running "firefox" as command from krunner (for the first firefox instance) looks far better than running it from the desktop menu entry (or from a shell).

The reason is the environment variable GTK2_RC_FILES being set to ":/home/daniel/.kde4/share/config/gtkrc-2.0".
Unsetting this environment var ("unset GTK2_RC_FILES") and then starting firefox from this shell makes it look far better again.

Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :

I'm currently looking into packaging the new gtk-qt-engine..

Revision history for this message
Daniel Hahler (blueyed) wrote :

A FeatureFreeze exception for gtk-qt-engine-kde4 has been granted in bug 204351.

Revision history for this message
Ryan Lester (buu700) wrote :

This is really cool, thanks! The only problem I can see is that it has trouble displaying widgets and tabs in Firefox. Do you think this would be possible for you to fix (i.e. is it a limitation of your program) or is it something for the Firefox devs to work on before the final release?

Revision history for this message
_tek_ (tek-notes) wrote :

I can verify this bug with the tabs in Firefox. Looks like the top of the tab is rendered on the bottom of it.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

This bug is fixed now. :)
The Firefox bugs can be reported against gtk-qt-engine-kde4. (and some already have been)

Changed in gtk-qt-engine:
status: Confirmed → Fix Released
Revision history for this message
_tek_ (tek-notes) wrote :

Excuse my ignorance, but where can I find the updated package? Doesn't look like it's made it into the repo yet and I'm unable to find the source download.

Thanks.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

The package for gtk-qt-engine that does Qt4 is gtk-qt-engine-kde4.

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote : Re: [Bug 188415] Re: GTK themes doesn't work properly in KDE4

The main point would be to make this part of kubuntu-kde4-desktop, so it
is that way by default, just like the KDE3 version of Kubuntu. Without
it, Kubuntu-KDE4 looks silly in comparison.

Jonathan Thomas wrote:
> The package for gtk-qt-engine that does Qt4 is gtk-qt-engine-kde4.
>
>

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

That's bug 229804.

Revision history for this message
_tek_ (tek-notes) wrote :

Yea I know what the package is called, my point was that there is no updated package in the repo.... Where can I find it?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

There isn't an updated package. This bug was about there not being a Qt4 version of gtk-qt-engine. Now that one exists, this bug can be closed. Any bugs with gtk-qt-engine-kde4 should be filed separately against gtk-qt-engine-kde4.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.