Mark a FLUID Project as "modified" when the user changes the visible Tab widget because that change will reflect in the generated source code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
0728999a83
commit
0148f1cfd0
@ -161,10 +161,14 @@ Fl_Type* Fl_Tabs_Type::click_test(int x, int y) {
|
||||
Fl_Tabs *t = (Fl_Tabs*)o;
|
||||
Fl_Widget *a = t->which(x,y);
|
||||
if (!a) return 0; // didn't click on tab
|
||||
// changing the visible tab has an impact on the generated
|
||||
// source code, so mark this project as changed.
|
||||
int changed = (a!=t->value());
|
||||
// okay, run the tabs ui until they let go of mouse:
|
||||
t->handle(FL_PUSH);
|
||||
Fl::pushed(t);
|
||||
while (Fl::pushed()==t) Fl::wait();
|
||||
if (changed) set_modflag(1);
|
||||
return (Fl_Type*)(t->value()->user_data());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user