]> git.tdb.fi Git - libs/gltk.git/commitdiff
Avoid putting tooltip label in layout
authorMikko Rasa <tdb@tdb.fi>
Tue, 4 Jun 2013 19:12:04 +0000 (22:12 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 4 Jun 2013 19:12:04 +0000 (22:12 +0300)
source/root.cpp
source/root.h

index eaf58194863a961e209f22ee175c90b1ac852aac..de2472797199108870d8b045679d53019ad815a8 100644 (file)
@@ -231,5 +231,11 @@ void Root::get_pointer(int &x, int &y)
        y = (mouse->get_axis_value(1)*0.5+0.5)*geom.h;
 }
 
+void Root::on_child_added(Widget &wdg)
+{
+       if(&wdg!=lbl_tooltip)
+               Panel::on_child_added(wdg);
+}
+
 } // namespace GLtk
 } // namespace Msp
index 64829e767899fac2bcf32c8465777f724f68d9f4..a74065dc9c08d8d1e44956e8695a7cef50d567a4 100644 (file)
@@ -64,6 +64,8 @@ private:
        bool character_event(StringCodec::unichar);
 
        void get_pointer(int &, int &);
+
+       virtual void on_child_added(Widget &);
 };
 
 } // namespace GLtk