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
This commit is contained in:
Matthias Melcher 2005-11-04 15:21:26 +00:00
parent 7f6bacf237
commit 79015a71f7
1 changed files with 6 additions and 1 deletions

View File

@ -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;