summaryrefslogtreecommitdiff
path: root/src/Fl_Widget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Widget.cxx')
-rw-r--r--src/Fl_Widget.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx
index 4eee6ef39..aba540802 100644
--- a/src/Fl_Widget.cxx
+++ b/src/Fl_Widget.cxx
@@ -334,7 +334,8 @@ void Fl_Widget::deactivate() {
}
int Fl_Widget::active_r() const {
- for (const Fl_Widget* o = this; o; o = o->parent())
+ const Fl_Widget *o;
+ for (o = this; o; o = o->parent())
if (!o->active()) return 0;
return 1;
}
@@ -354,7 +355,8 @@ void Fl_Widget::show() {
void Fl_Widget::hide() {
if (visible_r()) {
set_flag(INVISIBLE);
- for (Fl_Widget *p = parent(); p; p = p->parent())
+ Fl_Widget *p;
+ for (p = parent(); p; p = p->parent())
if (p->box() || !p->parent()) {p->redraw(); break;}
handle(FL_HIDE);
fl_throw_focus(this);
@@ -364,7 +366,8 @@ void Fl_Widget::hide() {
}
int Fl_Widget::visible_r() const {
- for (const Fl_Widget* o = this; o; o = o->parent())
+ const Fl_Widget *o;
+ for (o = this; o; o = o->parent())
if (!o->visible()) return 0;
return 1;
}