Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250504 - x11-themes/gtk-chtheme patch to work with qgtkstyle
Summary: x11-themes/gtk-chtheme patch to work with qgtkstyle
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 11:49 UTC by Alex Alexander (RETIRED)
Modified: 2009-02-25 23:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch that makes gtk-chtheme add 'gtk-theme-name = NAME' in gtkrc-2.0 (gtk-chtheme-qgtkstyle.patch,404 bytes, patch)
2008-12-10 11:51 UTC, Alex Alexander (RETIRED)
Details | Diff
updated ebuild that uses previous patch (gtk-chtheme-0.3.1-r2.ebuild,1.08 KB, text/plain)
2008-12-10 11:52 UTC, Alex Alexander (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.