diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-10-30 02:20:30 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-10-30 02:20:30 (GMT) |
commit | 37502d85d8519f2d5b2e0e849ee8b173c8ac7c5a (patch) | |
tree | 893f8bd879a9a3de39ce1d5fa8ce2e77f983ee1e /Source/FLTKDialog | |
parent | b0e3a2def0c20f20e4cbcf0ff03017777dc1a896 (diff) | |
download | CMake-37502d85d8519f2d5b2e0e849ee8b173c8ac7c5a.zip CMake-37502d85d8519f2d5b2e0e849ee8b173c8ac7c5a.tar.gz CMake-37502d85d8519f2d5b2e0e849ee8b173c8ac7c5a.tar.bz2 |
ENH: fl_ask replaced by fl_choice in FLTKCallback.
Diffstat (limited to 'Source/FLTKDialog')
-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 6fb3f99..6cffa59 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(); } } - } |