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 113592 - Allow Pango markup for tooltips
Allow Pango markup for tooltips
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other Linux
: Normal normal
: Small API
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-05-23 13:24 UTC by Paolo Maggi
Modified: 2007-02-28 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Maggi 2003-05-23 13:24:23 UTC
IMO, tooltips should use pango markup.

This can be easily done with a one line patch.

In fact, it should be enough to replace the gtk_label_set_text call in
gtk_tooltips_draw_tips with a gtk_label_set_markup call.

We could also eventually add a "use_markup" property.
Comment 1 Owen Taylor 2003-05-23 18:15:23 UTC
Make it use markup by default would be an incompatible
API change. It's perfectly legitimate and probably
even common to have < and & in tooltips currently.

I'm not sure if the setting for whether to use markup
should be per-tip or global to the GtkTooltips object;
I suspect per-tips.

See also bug 50619 for more major ideas about improving 
tooltips; the two big problems with tooltips now are:

 Need for the tooltips object; adding a tooltip to
 a widget should be as simple as gtk_widget_set_tooltip()
 or setting a property.

 Impossible to have tooltips for subwidgets.

 
Comment 2 Mariano Suárez-Alvarez 2007-02-11 11:13:16 UTC
Isn't this in Kris's new tooltips?
Comment 3 Kristian Rietveld 2007-02-28 14:55:09 UTC
Closing, since it's supposed by the new tooltips API in 2.12.