GTK-QT Theme Engine

GTK1 Themes

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

4
5.0
Description:

This engine is for use by GTK applications running in KDE. It applies all Qt settings to the GTK application and uses Qt style plugins directly.

Please see http://gtk-qt.ecs.soton.ac.uk for more information and SVN instructions.
Last changelog:

12 years ago

Changes in 1.0:

New features and general improvements:

Ported the theme engine to Qt4. Qt3 styles are no longer supported in this version - this is only for users who have upgraded to KDE4 or who want to use Oxygen in their GTK applications.

i18n:

Updated .pot file
Czech translation by David Watzke
Italian translation by Davide Madrisan

(For older changelogs, see http://gtk-qt.ecs.soton.ac.uk/downloads.php)

Artitekt

12 years ago

I can reproduce this problem. I installed GTK-QT through synaptic in Hardy. Style "Raleigh" works fine, but "Qt4" or "Use my KDE style..." both produce floating point exceptions when trying to launch programs. Requested output:

GTK_QT_ENGINE_DEBUG=1 logjam

(process:12384): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(process:12384): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Engine::Engine()
Command line: "logjam"
static void RcProperties::setRcProperties()
Setting RC string: "style "gtk-qt-dynamic-1" { GtkCheckButton::indicator-size = 22 } widget_class "*" style "gtk-qt-dynamic-1""
Setting RC string: "style "gtk-qt-dynamic-2" { GtkNotebook::tab-overlap = 0 } widget_class "*" style "gtk-qt-dynamic-2""
Setting RC string: "style "gtk-qt-dynamic-3" { xthickness = 3 } widget_class "*.GtkNotebook" style "gtk-qt-dynamic-3""
Setting RC string: "style "gtk-qt-dynamic-4" { ythickness = 3 } widget_class "*.GtkNotebook" style "gtk-qt-dynamic-4""
Setting RC string: "style "gtk-qt-dynamic-5" { xthickness = 5 } class "GtkEntry" style "gtk-qt-dynamic-5""
Setting RC string: "style "gtk-qt-dynamic-6" { ythickness = 5 } class "GtkEntry" style "gtk-qt-dynamic-6""
Setting RC string: "style "gtk-qt-dynamic-7" { GtkMenu::vertical-padding = 1 } widget_class "*" style "gtk-qt-dynamic-7""
Setting RC string: "style "gtk-qt-dynamic-8" { GtkMenu::horizontal-padding = 1 } widget_class "*" style "gtk-qt-dynamic-8""
Setting RC string: "style "gtk-qt-dynamic-9" { GtkCheckMenuItem::indicator-size = 22 } widget_class "*" style "gtk-qt-dynamic-9""
Setting RC string: "style "gtk-qt-dynamic-10" { GtkScale::slider-length = 20 } widget_class "*" style "gtk-qt-dynamic-10""
Setting RC string: "style "gtk-qt-dynamic-11" { GtkScale::slider-width = 20 } widget_class "*" style "gtk-qt-dynamic-11""
Floating point exception

Report

ollowtf

12 years ago

sorry, I can't reproduce, I rebuilt Qt4.4 from KDE SVN and now I have no errors, your Gtk-Qt engine works perfect, thanks :)

Report

joth666

12 years ago

Very nice! I was hoping this would be ported to KDE4 quickly, and I was not disappointed. Well, once I had figured out why it refused to compile for me...

Apart from tabs in firefox3 (then again, tabs in KDE4 apps look awful once there's not enough screen estate for them as well...), everything looks a LOT nicer now. And I assume the tabs would look odd in the same way in other gtk-apps too. Very apprecieated!

If it only was as easy to get gtk-apps to use the KDE file/print dialogues...

Report

C

davidsansome

12 years ago

Thanks for the comments!

I've been trying to reproduce your bonobo problem, but it compiles fine on my box without libbonobo. Can you remember the error you got? If not, what distro are you using? I'll see if I can reproduce it.

And yes, Firefox still looks strange with gtk-qt. Not really sure there's much I can do about it, since it's Firefox that's using GTK themes incorrectly.

Report

joth666

12 years ago

Not exacly I'm afraid. Cmake said something along the lines of "This program works better if bonobui is installed".

When I tried to compile anyway (since I thought the program should work without it), I got errors regarding undefined variables and/or functions. In qt_main.c IIRC.

I'm using Kubuntu Hardy, so some of the problem may or may not have something to do with its alpha-status.

Report

Tyl3r

12 years ago

Do you mind sharing how you solved the compilation issue? It doesn't compile for me too, although cmake gives no errors.
Thanks

Report

joth666

12 years ago

The only thing I needed to do was to make sure that bonoboui and its dependencies were installed, as well as the corresponding -dev package.

The message cmake gave kinda fooled me, since it didn't sound like an error. It sounded more like "If you want the best out of the engine, you should have bonobui installed." That is, it sounded as if it would work without bonobui but not optimally. Turned out I was wrong about that and that it was mandatory.

Hope that helps.

Report

Tyl3r

12 years ago

Thanks a lot! Installing bonoboui and bonoboui-dev fixed my problems and I was able to compile.

Also thanks to the author for porting this app to KDE4, it's awsome.
I only have some problems with the widgets borders on Firefox, but I can live with it :D

Report

Aikurn

12 years ago

I'd love to test the new Qt4 version but the download link seems to be dead. Any alternatives?

Report

C

davidsansome

12 years ago

Argh sorry about that - looks like it's time to find a new hosting provider.

I've mirrored the file here in the meantime:
http://people.freedesktop.org/~davidsansome/gtk-qt-engine-1.1.tar.bz2

Report

cerberanke

13 years ago

Nice work, but still there is one annoying bug. It takes uses KDE [standard text] color as GTK [window text] color while it should use KDE [window text].

Therefore one might get into trouble: if you set dark [window background] color and light [standard background] color you need a dark [standard text] color and light [window text] if you want too see everything, but with GTK-QT engine in GTK you get them both dark, therefore you cannot see [window text]

It would be really great if you would fix this little bug. I could use my favorite dark themes :)

Report

bastanteroma

13 years ago

Anyone know if this will/does work with KDE4?

Report

krigstask

13 years ago

Extremely useful! Thanks a lot

Report

4ngelus

13 years ago

It's really nice! Thanks man.

Report

kwr2k

13 years ago

Warning: The GTK-Qt Theme Engine now uses cmake instead of ./configure.

Found cmake in /usr/bin/cmake, executing it for you...
-- Found KDE3 include dir: /usr/include
-- Found KDE3 library dir: /usr/lib
-- Found KDE3 dcopidl preprocessor: /usr/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found Qt library: /usr/lib/qt3/lib/libqt-mt.so
CMake Error: GTK was not found. Ensure you have the GTK development libraries installed, and GTK's pkgconfig files are in your pkgconfig search path.
-- Configuring done

I have gtk+2.0, libgtk+2.0.0-devel etc installed.
Why does it throw the above error then?

Report

cookies

13 years ago

This project is still alive! After seeing no activity I thought it died. Great work. :D

Report

cabbitgrrrl

14 years ago

Hi I just noticed that when this program tries to apply icons from the kde theme, it does not work with icons that are missing. I noticed this when I was using Gaim, KDE had the slick icon set on, the bold italic and underline buttons did not have proper icons on them (just missing image icons). I am using Slackware 11 with KDE 3.5.4 and GTK-QT .7

Report

C

davidsansome

14 years ago

Hi Erin,

I fixed this last night! Have a play with the latest version in SVN and let me know if the problem still exists.

Thanks!

Report

han001

14 years ago

I've already used this engine with an older version of kde and it's great. Yesterday I installed Slackware 11 RC4 with KDE 3.5.4 and it didn't work. GTK apps were still ugly. I tried to compile it, a tgz package and with autopackage (0.6 and 0.7 versions). None of them worked. Is it a bug or something is wrong with my Slack? Thanks

Report

mrutten

14 years ago

I've tried to use this for a while in Slackware current, but since the GTK packages were upgraded the GTK-Qt engine won't work properly anymore, so I downgraded again and blacklisted the GTK packages against upgrading. I'm starting over again if Slackware 11 is finished, but I don't think I'll be able to use GTK-Qt by then...

Report

mrutten

14 years ago

Ok, it seems to work fine in a fresh Slackware 11 install.

Report

galidor82

14 years ago

Hello everyone.

Some apps programmed with GTK show Qt icons. I usually use QtCurve theme.
How can I use GTK icons only?

Thanks

Report

InFeRnODeMoN

14 years ago

When I try to close (by 'X' and File->Quit) The GIMP, it _always_ crashes.
Using FreeBSD 6.1 with KDE 3.5.1. I also had to move a few files to make the engine work. Also the Control module doesn't find any of the GTK themes. Using .gtkrc-2.0 to set the style to Qt works fine.

Report

iuso

14 years ago

Update to my previous posting:

This problem has nothing to do with gtk-qt-engine. It's an issue with the latest KDE. I heard they changed the default font in 3.5.4, leading to missing antialiasing in others than KDE apps. Anyway whatever the cause might be, here's how to fix it:

Go to Control Center -> Appearance & Themes -> Fonts, change "General" font to anything else, and apply. Antialiasing in non-KDE apps works again now, and you can change the font back to whatever you had before.

Report

mwhitlock

14 years ago

What a strange bug and an even stranger workaround/fix. I did what you suggested, and indeed, all my GTK apps returned to using anti-aliased fonts. Thanks for the tip!

Report

12 years ago

Changes in 1.0:

New features and general improvements:

Ported the theme engine to Qt4. Qt3 styles are no longer supported in this version - this is only for users who have upgraded to KDE4 or who want to use Oxygen in their GTK applications.

i18n:

Updated .pot file
Czech translation by David Watzke
Italian translation by Davide Madrisan

(For older changelogs, see http://gtk-qt.ecs.soton.ac.uk/downloads.php)

12345678910
Be the first to comment
jesusda3rd
Jul 09 2020
originalseed
Oct 13 2011
tobgle
Feb 05 2010
ladykatlyn
Aug 25 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.1
updated Mar 10 2008
added Dec 31 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 4