diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-18 22:11:27 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-18 22:11:27 +0000 |
commit | badfb31888a6bd62e0a019b3f3dec517df4121ec (patch) | |
tree | 94cb95e405c05f013c8ae4f66a0b973aa5e59b3a /src/ui/widget.cc | |
parent | 9c91a9767b570fdc3c3e19e1f452f9a8257f9999 (diff) |
trade updates
Diffstat (limited to 'src/ui/widget.cc')
-rw-r--r-- | src/ui/widget.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/widget.cc b/src/ui/widget.cc index 5fe6f17..79281a1 100644 --- a/src/ui/widget.cc +++ b/src/ui/widget.cc @@ -47,6 +47,15 @@ void Widget::remove_children() widget_children.clear(); } +bool Widget::is_child(const Widget *widget) const +{ + for (Children::const_iterator it = widget_children.begin(); it != widget_children.end(); it++) { + if (widget == (*it)) + return true; + } + return false; +} + size_t Widget::list(const size_t indent, const bool visible_only) const { if (visible_only && !visible()) |