2010-04-04

VLC with GTK+ look-n-feel

To get Qt applications to look like GTK+ applications run qtconfig and in Select GUI Style choose GTK+. Next click in the menu bar File > Save.

Something is still puzzling me, why does GNOME run VLC automatically with native GTK+ look-n-feel and not Xfce?

Update: Thanks to the power of tig and grep, I figured the Qt library (qt_init function) defines the desktop environment as GNOME for Xfce (this results in GTK+ theming, GNOME like Open dialogues, etc) by retrieving an X11 atom on the root window and compares it to “xfce4” but it seems that this doesn't work nowadays (at least it didn't work within an Xfce 4.7 desktop session). I'm looking forward for sending patches.

Update2: The latest version Qt 4.6.2 doesn't include the code for checking the X11 atom (it's in git), which explains why it doesn't work.

2 comments:

  1. Is there a way to change to gtk+ other than qtconfig, i am on a minimal ubuntu install with openbox and don't want install a lot of qt.

    thanks

    ReplyDelete
  2. The QT library is the one that provides the qtconfig tool, so there is no such thing as “a lot of qt”. Then you can always search for GTK+ alternatives, for example have a look at this page, it's a list of suggested applications all in GTK+.

    ReplyDelete