Replaced all occurrences of deprecated Fl::release() by Fl::grab(0).

Changed files:

  src/Fl_Menu.cxx		(2x)
  src/fl_show_colormap.cxx	(1x)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2008-12-11 09:01:04 +00:00
parent 5f75c5b754
commit 26c6437407
2 changed files with 3 additions and 3 deletions

View File

@ -802,7 +802,7 @@ const Fl_Menu_Item* Fl_Menu_Item::pulldown(
if (menubar) {
// find the initial menu
if (!mw.handle(FL_DRAG)) {
Fl::release();
Fl::grab(0);
return 0;
}
}
@ -906,7 +906,7 @@ const Fl_Menu_Item* Fl_Menu_Item::pulldown(
}
}
const Fl_Menu_Item* m = pp.current_item;
Fl::release();
Fl::grab(0);
delete pp.fakemenu;
while (pp.nummenus>1) delete pp.p[--pp.nummenus];
mw.hide();

View File

@ -148,7 +148,7 @@ Fl_Color ColorMenu::run() {
Fl::grab(*this);
done = 0;
while (!done) Fl::wait();
Fl::release();
Fl::grab(0);
return which;
}