From 50f11cec86c034fbee2ab332503266808b1eba74 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 4 Jun 2013 22:12:04 +0300 Subject: [PATCH] Avoid putting tooltip label in layout --- source/root.cpp | 6 ++++++ source/root.h | 2 ++ 2 files changed, 8 insertions(+) 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 -- 2.43.0