diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-10-29 21:20:30 -0500 |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-10-29 21:20:30 -0500 |
commit | 37502d85d8519f2d5b2e0e849ee8b173c8ac7c5a (patch) | |
tree | 893f8bd879a9a3de39ce1d5fa8ce2e77f983ee1e /Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | |
parent | b0e3a2def0c20f20e4cbcf0ff03017777dc1a896 (diff) | |
download | cmake-37502d85d8519f2d5b2e0e849ee8b173c8ac7c5a.tar.gz |
ENH: fl_ask replaced by fl_choice in FLTKCallback.
Diffstat (limited to 'Source/FLTKDialog/CMakeSetupGUIImplementation.cxx')
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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(); } } - } |