mirror of https://github.com/fltk/fltk
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:
parent
7f6bacf237
commit
79015a71f7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue