On 10/29/10 05:19, David Coppa wrote:
> On Fri, 29 Oct 2010, Jiri B. wrote:
>
>> hi,
>>
>> I have found during testing keepassx that QT has some issues when
>> using GTK style :( Theme is OK of course.
>>
>> Using latest snapshots, latest ports snapshot. Is it working for you
>> correctly?
>>
>> $ qtconfig4
>> QGtkStyle was unable to detect the current GTK+ theme.
>> QGtkStyle was unable to detect the current GTK+ theme.
> That's not an issue. It's how the thing is designed.
> It requires some additional incantations if you're not using GNOME.
>
> You need a proper ~/.gtkrc-2.0, e.g.:
>
> ---
>
> include "/usr/local/share/themes/Rezlooks-Watercolor/gtk-2.0/gtkrc"
>
> style "daco"
> {
> font_name = "sans 8"
> }
> widget_class "*" style "daco"
>
> gtk-font-name = "sans 8"
>
> gtk-icon-theme-name = "gnome"
>
> gtk-theme-name = "Rezlooks-Watercolor"
>
> gtk-toolbar-style = GTK_TOOLBAR_ICONS
>
> gtk-cursor-blink = 0
>
> ---
>
> Your must-have is the "gtk-theme-name" line.
>
> And then:
>
> $ export GTK2_RC_FILES=~/.gtkrc-2.0:/etc/gtk-2.0/gtkrc
>
> Now QGtkStyle should work...
>
> ciao,
> david
>
I was having the same issue. In my case, the theme was defined, though
not the same way:
include "/usr/local/share/themes/EquinoxGlass/gtk-2.0/gtkrc"
Running the above export, qtconfig still fails to detect the theme.
$ export GTK2_RC_FILES=~/.gtkrc-2.0:/etc/gtk-2.0/gtkrc
$
$ qtconfig4
QGtkStyle was unable to detect the current GTK+ theme.
$
Is this also by design?
--
--
Hugo Osvaldo Barrera