Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 250504

Summary: x11-themes/gtk-chtheme patch to work with qgtkstyle
Product: Gentoo Linux Reporter: Alex Alexander (RETIRED) <wired>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch that makes gtk-chtheme add 'gtk-theme-name = NAME' in gtkrc-2.0
updated ebuild that uses previous patch

Description Alex Alexander (RETIRED) gentoo-dev 2008-12-10 11:49:43 UTC
qgtkstyle is a QT4 style that uses the current GTK theme. 

When gtk-chtheme changes your theme, it misses an important variable that is needed by qgtkstyle in ~/.gtkrc-2.0, gtk-theme-name = "NAME".

I am attaching a patch and new ebuild for gtk-chtheme that makes it add the required variable in .gtkrc-2.0 when you select a theme.

Note that for this to work you also need to add

export GTK2_RC_FILES="`pwd`/.gtkrc-2.0"

in /etc/profile or similar. I've added the necessary ewarns in the ebuild...

Reproducible: Always

Steps to Reproduce:
1. install qgtkstyle from voyageur overlay
2. run qtconfig
3. if the proper variables are not set and you select the GTK style, you get the error "QGtkStyle cannot be used together with the GTK_Qt engine."
Actual Results:  
QT4 prints the error "QGtkStyle cannot be used together with the GTK_Qt engine." and switches to the default GTK theme (clearlooks for me).

Expected Results:  
QT4 should use the selected GTK theme
Comment 1 Alex Alexander (RETIRED) gentoo-dev 2008-12-10 11:51:24 UTC
Created attachment 174851 [details, diff]
patch that makes gtk-chtheme add 'gtk-theme-name = NAME' in gtkrc-2.0
Comment 2 Alex Alexander (RETIRED) gentoo-dev 2008-12-10 11:52:14 UTC
Created attachment 174853 [details]
updated ebuild that uses previous patch
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-12-11 00:28:44 UTC
any upstream bug to refer to ?
Comment 4 Alex Alexander (RETIRED) gentoo-dev 2008-12-11 08:57:58 UTC
I've emailed the patch and fix details to the gtk-chtheme author. I'll update this bug when I get a response.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-25 23:57:39 UTC
the fix didn't look so crazy after all so I added it to 0.3.1-r2. Thanks for the patch.