Skip to content

Commit

Permalink
Mark a FLUID Project as "modified" when the user changes the visible …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Matthias Melcher committed Jun 19, 2006
1 parent 0728999 commit 0148f1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fluid/Fl_Group_Type.cxx
Expand Up @@ -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());
}

Expand Down

0 comments on commit 0148f1c

Please sign in to comment.