From 022415c310459b0cc6940ed31661ce28aec8f0ad Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 8 Sep 2005 08:27:21 +0000 Subject: 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 --- fluid/Fl_Window_Type.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); } } -- cgit v1.2.3