]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/root.cpp
Rename some get functions as find because they can return null
[libs/gltk.git] / source / root.cpp
index 376b9d53c819beec1b2f4548d771571535073b8e..167b3f798c8963768b11c320cb9d82bf9dc5d916 100644 (file)
@@ -78,7 +78,7 @@ void Root::tick()
        if(tooltip_timeout && Time::now()>tooltip_timeout)
        {
                std::string tip;
-               if(Widget *wdg = get_descendant_at(pointer_x, pointer_y))
+               if(Widget *wdg = find_descendant_at(pointer_x, pointer_y))
                {
                        tip = wdg->get_tooltip();
                        tooltip_target = wdg;
@@ -185,7 +185,7 @@ bool Root::axis_motion_event(unsigned, float, float)
                        pointer_y = y;
                        tooltip_timeout = Time::now()+700*Time::msec;
                }
-               else if(get_descendant_at(x, y)!=tooltip_target)
+               else if(find_descendant_at(x, y)!=tooltip_target)
                {
                        if(lbl_tooltip)
                                lbl_tooltip->set_visible(false);