summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-11-04 15:21:26 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-11-04 15:21:26 +0000
commit79015a71f72472b2bbc4235ec62e93119fd57a51 (patch)
tree51a7ca593a5f80c5d9edb2579d952c692ca3eed2
parent7f6bacf2374d8e82a31cdbfd8fcf5ff18e97a55b (diff)
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
-rw-r--r--fluid/Fl_Window_Type.cxx7
1 files changed, 6 insertions, 1 deletions
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;