From 37502d85d8519f2d5b2e0e849ee8b173c8ac7c5a Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Mon, 29 Oct 2001 21:20:30 -0500 Subject: ENH: fl_ask replaced by fl_choice in FLTKCallback. --- Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/FLTKDialog') diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx index 6fb3f9979a..6cffa59013 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx @@ -14,9 +14,10 @@ void FLTKMessageCallback(const char* message, const char* title, bool& nomore) { - int ok = - fl_ask(message, "Press cancel to suppress any further messages."); - if(!ok) + std::string msg = message; + msg += "\nPress cancel to suppress any further messages."; + int choice = fl_choice( msg.c_str(), "Cancel","Ok",""); + if(choice==0) { nomore = true; } @@ -586,7 +587,6 @@ CMakeSetupGUIImplementation m_CacheEntriesList.SetDirty(); } } - } -- cgit v1.2.1