! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Gtk-xfce-engine, gtk2: Tooltip theme settings ignored
Status:
CLOSED: FIXED
Product:
Gtk-xfce-engine
Component:
General

Comments

Description Klaus Kusche 2012-02-21 08:20:09 CET
Some standard Xfce themes contain color settings for tooltips:

style "tooltips" = "default"
{
    bg[NORMAL] = "#ffffdf"
    fg[NORMAL] = "#101010"
}
widget "gtk-tooltips*"             style "tooltips"

As far as I can tell, these settings are ignored by the theme engine:
No matter what is defined in the theme, 
all tooltips have the normal dialog background and foreground color.

In my private theme, I also tried to increase the spacing between
the text and the tooltip border:

style "tooltips" = "default"
{
    xthickness = 4
    ythickness = 4

    bg[NORMAL] = @tooltip_bg_color
    fg[NORMAL] = @tooltip_fg_color
}

These settings are also ignored: The border is much too close to the text.

In the gtk3 Gtk-xfce-engine the tooltip theme definitions work fine.
Comment 1 Peter de Ridder editbugs 2012-02-23 20:47:32 CET
The name of the tooltip widget might have changed in them past, since I see more themes with this problem. This line doesn't match the tooltips:
widget "gtk-tooltips*" style "tooltips"
the next both line do match:
widget "gtk-tooltip*"  style "tooltips"
widget "gtk-tooltip"   style "tooltips"

I'll fix this match in the default themes too.
Comment 2 Klaus Kusche 2012-02-25 13:10:23 CET
Changing that line fixes the problem for me.
Comment 3 Peter de Ridder editbugs 2012-03-30 12:50:19 CEST
Fixed for the default themes in commit e9d9e7b

Bug #8494

Reported by:
Klaus Kusche
Reported on: 2012-02-21
Last modified on: 2012-04-08

People

Assignee:
Peter de Ridder
CC List:
1 user

Version

Version:
Unspecified

Attachments

Additional information