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 156581 - Adds gtk_tooltips_set_tip_widget()
Adds gtk_tooltips_set_tip_widget()
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.4.x
Other FreeBSD
: Normal enhancement
: Small API
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-10-27 13:12 UTC by Jean-Yves Lefort
Modified: 2007-02-28 17:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
adds gtk_tooltips_set_tip_widget() (6.49 KB, patch)
2004-10-27 13:12 UTC, Jean-Yves Lefort
none Details | Review

Description Jean-Yves Lefort 2004-10-27 13:12:11 UTC
The attached patch adds a gtk_tooltips_set_tip_widget() call to the GtkTooltips
API. As the name says, it allows to use a widget as tooltip. This feature
has been lacking for too long, and would be extremely useful for applets,
notification icons and the like.
Comment 1 Jean-Yves Lefort 2004-10-27 13:12:48 UTC
Created attachment 33121 [details] [review]
adds gtk_tooltips_set_tip_widget()
Comment 2 Owen Taylor 2004-10-28 14:29:50 UTC
I don't see why a popup from an applet, notification icon, etc, is a tooltip.
Comment 3 Jean-Yves Lefort 2004-10-28 14:48:29 UTC
What do you mean by "popup"?
Comment 4 Owen Taylor 2004-10-28 16:13:19 UTC
A little window that gets displayed attached to another window. Like
a tootlip. But not necessarily displayed on mouse over, and not necessarily
popped up when the user hits Control-F1, and not necessarily with a yellow
background,.
Comment 5 Jean-Yves Lefort 2004-10-28 16:19:58 UTC
Ok. How do you think an applet could use a tooltip displaying more than just
plain text (ie. an image, or marked-up text) without having to reimplement
gtktooltips.c?
Comment 6 Matthias Clasen 2004-10-28 16:25:30 UTC
Displaying markup or images is simply not supported in gtk tooltips currently. 
This will certainly be considered when refactoring the tooltips system, as
currently discussed on gtk-devel-list. But adding arbitrary widgets just doesn't
seem like a very good fit with the use cases for tooltips.
Comment 7 Jean-Yves Lefort 2004-10-28 17:34:54 UTC
What else do you suggest for adding some "multimedia" content to a tooltip?
Incorporating a modified gtktooltips.c into every application?
Comment 8 Alex Graveley 2005-08-13 18:14:02 UTC
For the record, I have personally reimplemented tooltips from scratch once, to
get this feature.  And I have intimately interacted with two other
reimplementations, both of which were written to get this feature.  

This feature is needed very very badly.
Comment 9 Xan Lopez 2007-02-28 17:13:08 UTC
This is implemented in the new GtkTooltips code scheduled for 2.12.