[Gtk-sharp-list] Issues with Tooltips

Mark A. Nicolosi mark.a.nicolosi at gmail.com
Tue Mar 20 23:59:33 EDT 2007


Hi. This code should show a tooltip for a label in the statusbar, but
doesn't:

--
public class MapView : DrawingArea {}

public Test ()
{
        Application.Init ();
        LoadGladeXML ();

        EventBox box = new EventBox ();
        box.Add (new Label ("Label 1"));

        Tooltips tips = new Tooltips ();
        tips.SetTip (box, "Test Tooltip", null);

        statusbar.Add (box);
        statusbar.Add (new Label ("Label 2"));
        statusbar.Push (0, "We have a message area, too.");

        map_view_container.Add (new MapView ());
        //map_view_container.Add (new DrawingArea ());
        main_window.ShowAll ();

        Application.Run ();
}
--

If I change I uncomment the new DrawingArea line and comment the one above
it the tooltips shows. Is this a bug or am I missing something?

Thanks for the help.

-- 
Mark A. Nicolosi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070320/fe15174a/attachment.html 


More information about the Gtk-sharp-list mailing list