From 79015a71f72472b2bbc4235ec62e93119fd57a51 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 4 Nov 2005 15:21:26 +0000 Subject: FLUID1: correctly hide the "X Class:" label whenever the XClass input field is hidden git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Window_Type.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 0db47c541..050324d05 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -448,8 +448,13 @@ void border_cb(Fl_Light_Button* i, void* v) { void xclass_cb(Fl_Input* i, void* v) { if (v == LOAD) { - if (!current_widget->is_window()) {i->hide(); return;} + if (!current_widget->is_window()) { + i->hide(); + i->parent()->hide(); // hides the "X Class:" label as well + return; + } i->show(); + i->parent()->show(); i->value(((Fl_Widget_Type *)current_widget)->xclass); } else { int mod = 0; -- cgit v1.2.3