846 {
847 if (!child || !parent)
848 return false;
849
850 Widget currentChild = parent.GetChildren();
851 while (currentChild)
852 {
853 if (currentChild == child)
854 return true;
855 currentChild = currentChild.GetSibling();
856 }
857 return false;
858 }