After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 56291 - Handle tooltips on NO_WINDOW widgets
Handle tooltips on NO_WINDOW widgets
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
1.3.x
Other All
: Normal normal
: Medium feature
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-06-17 02:09 UTC by Havoc Pennington
Modified: 2008-07-15 06:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Havoc Pennington 2001-06-17 02:09:58 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?
Comment 1 Owen Taylor 2001-06-17 12:08:58 UTC
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.
Comment 2 Owen Taylor 2001-06-23 15:04:40 UTC
(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.)
Comment 3 Matthias Clasen 2003-01-02 23:34:21 UTC
Move bugs which are tracking planned 2.4 features to the proper target
milestones.
Comment 4 Matthias Clasen 2008-07-15 06:37:34 UTC
This should be covered with the new tooltips api in 2.12