From: Mikko Rasa Date: Tue, 4 Jun 2013 19:12:04 +0000 (+0300) Subject: Avoid putting tooltip label in layout X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=commitdiff_plain;h=50f11cec86c034fbee2ab332503266808b1eba74 Avoid putting tooltip label in layout --- diff --git a/source/root.cpp b/source/root.cpp index eaf5819..de24727 100644 --- a/source/root.cpp +++ b/source/root.cpp @@ -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 diff --git a/source/root.h b/source/root.h index 64829e7..a74065d 100644 --- a/source/root.h +++ b/source/root.h @@ -64,6 +64,8 @@ private: bool character_event(StringCodec::unichar); void get_pointer(int &, int &); + + virtual void on_child_added(Widget &); }; } // namespace GLtk