diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2019-05-15 18:02:01 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2019-05-15 18:02:01 +0200 |
| commit | 31093d0a14136ca2c6d095c765edcf325c246dac (patch) | |
| tree | 0328ab013e66c748ece6fdc821f5345536bbf90b /documentation/src/faq.dox | |
| parent | c4a755bdf8501f74b09c09fd9aad912f025d49e9 (diff) | |
Replace fl_ask() with fl_choice() in FAQ
fl_ask() is deprecated and should be replaced with fl_choice().
Diffstat (limited to 'documentation/src/faq.dox')
| -rw-r--r-- | documentation/src/faq.dox | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/documentation/src/faq.dox b/documentation/src/faq.dox index 530f97eef..a407327dd 100644 --- a/documentation/src/faq.dox +++ b/documentation/src/faq.dox @@ -125,7 +125,7 @@ because Escape will still close pop-up windows: \code void my_callback(Fl_Widget*, void*) { - if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape) + if (Fl::event() == FL_SHORTCUT && Fl::event_key() == FL_Escape) return; // ignore Escape exit(0); } @@ -136,7 +136,8 @@ done with: \code void my_callback(Fl_Widget*, void*) { - if (fl_ask("Are you sure you want to quit?")) + if (fl_choice("Are you sure you want to quit?", + "continue", "quit", NULL)) exit(0); } \endcode |
