Tooltips: Fix docs/theming for custom tooltip windows
- Submitted by Daniel Boles
@dboles
- Link to original bug (#784421)
Description
The doc for gtk_widget_set_tooltip_window()
refers to "the default, usually yellow, window", which is long outdated: Adwaita uses a dark transparent background in both variants, and HighContrast just uses the main theme bg colour.
Moreover, the same function doc also says this:
If the custom window should have the default theming it needs to have the name “gtk-tooltip”, see
gtk_widget_set_name()
.
This can't work as the themes never select on this ID. It should be fixed by replacing the reference to #gtk-tooltip
with the class .tooltip
, and ensuring the themes actually use that class to style like real tooltips (if that can be done).
A weird thing is that Adwaita only selects on the widget node named tooltip
right now, but HighContrast already also includes the class .tooltip
in its selectors.