[Gtk-sharp-list] Gtk.Tooltips obsolete - any replacement?
Peter Johanson
peter at peterjohanson.com
Wed Jan 28 12:45:07 EST 2009
On Wed, Jan 28, 2009 at 05:36:50PM +0000, Hywel Thomas wrote:
> I am getting a 'Gtk.Tooltips is obsolete (CS0612)' compilation warning,
> but I can't see any replacement (or obsolescence note) in the Gtk#
> documentation. What is the preferred method for using Tooltips with
> Gtk# 2.12? I also notice that Tooltips work after a delay following the
You want to use the new "Gtk.Tooltip" and associated API. Typically,
that means using the Gtk.Widget.QueryTooltip event, if you're doing
custom tooltips.
See:
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-query-tooltip
If you're just setting a regular tooltip, you can now just set
Gtk.Widget.TooltipText or TooltipMarkup and have it work as expected.
-pete
More information about the Gtk-sharp-list
mailing list