diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-09-08 08:27:21 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-09-08 08:27:21 +0000 |
| commit | 022415c310459b0cc6940ed31661ce28aec8f0ad (patch) | |
| tree | e5c11ba0b53db19a9fac30bd35182f4298dfa4b2 | |
| parent | edcc1980a1bbeaf07a48ce5ce6225d5ae6cfb004 (diff) | |
STR #1016 :
Fixed some more missing modification flag cases in FLUID
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 45dc2ea4a..ee579b217 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -403,6 +403,7 @@ void modal_cb(Fl_Light_Button* i, void* v) { i->value(((Fl_Window_Type *)current_widget)->modal); } else { ((Fl_Window_Type *)current_widget)->modal = i->value(); + set_modflag(1); } } @@ -413,6 +414,7 @@ void non_modal_cb(Fl_Light_Button* i, void* v) { i->value(((Fl_Window_Type *)current_widget)->non_modal); } else { ((Fl_Window_Type *)current_widget)->non_modal = i->value(); + set_modflag(1); } } @@ -423,6 +425,7 @@ void border_cb(Fl_Light_Button* i, void* v) { i->value(((Fl_Window*)(current_widget->o))->border()); } else { ((Fl_Window*)(current_widget->o))->border(i->value()); + set_modflag(1); } } @@ -432,14 +435,18 @@ void xclass_cb(Fl_Input* i, void* v) { i->show(); i->value(((Fl_Widget_Type *)current_widget)->xclass); } else { - for (Fl_Type *o = Fl_Type::first; o; o = o->next) + int mod = 0; + for (Fl_Type *o = Fl_Type::first; o; o = o->next) { if (o->selected && o->is_widget()) { + mod = 1; Fl_Widget_Type* w = (Fl_Widget_Type*)o; if (w->is_window() || w->is_button()) storestring(i->value(),w->xclass); if (w->is_window()) ((Fl_Window*)(w->o))->xclass(w->xclass); else if (w->is_menu_item()) w->redraw(); } + } + if (mod) set_modflag(1); } } |
