From 31093d0a14136ca2c6d095c765edcf325c246dac Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 15 May 2019 18:02:01 +0200 Subject: Replace fl_ask() with fl_choice() in FAQ fl_ask() is deprecated and should be replaced with fl_choice(). --- documentation/src/faq.dox | 5 +++-- 1 file 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 -- cgit v1.2.3