GNOME Bugzilla – Bug 56291
Handle tooltips on NO_WINDOW widgets
Last modified: 2008-07-15 06:37:34 UTC
GtkCheckButton sets the GTK_NO_WINDOW flag, which means it can't have a tooltip. Also, it's a subclass of GtkToggleButton and doesn't override realize, so I don't see how it's NO_WINDOW. Probably I'm missing something?
NO_WINDOW <=> widget->window is owned by the widget Since we have the constraints that: - the widget only draws in widget->window - All windows owned by the widget must be children of widget->window GtkCheckButton has to be NO_WINDOW to properly draw. As for the realize() part, take a look into gtk_toggle_button_realize(). Now, clearly there is a problem that you can't have a tooltip on a checkbutton, but this cannot be fixed by making checkbuttons !NO_WINDOW widgets.
(Renaming to describe real problem, moving to future milestone, though it might be possible to fix GtkTooltips to work on all widgets without changing the API.)
Move bugs which are tracking planned 2.4 features to the proper target milestones.
This should be covered with the new tooltips api in 2.12