From 60fa54231fd60ad2bae548ae0f99f0b0a0814a2d Mon Sep 17 00:00:00 2001 From: pabs Date: Sun, 4 Mar 2007 08:41:23 +0000 Subject: [PATCH] Change the "feature not implemented" dialog to a more standard looking MessageDialog git-svn-id: http://svn.voria.com/code@263 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/app.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 26f2f30..c861f39 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -38,6 +38,7 @@ #endif #include #include +#include #include #include #include @@ -1942,18 +1943,10 @@ App::dialog_yes_no_cancel(const std::string &title, const std::string &message) void App::dialog_not_implemented() { - Gtk::Dialog dialog( - "Feature not available", // Title - true, // Modal - true // use_separator - ); - Gtk::Label label("Sorry, this feature has not yet been implemented."); - label.show(); - - dialog.get_vbox()->pack_start(label); - dialog.add_button(Gtk::StockID("gtk-ok"),Gtk::RESPONSE_OK); - dialog.show(); - dialog.run(); + Gtk::MessageDialog dialog("Feature not available", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_CLOSE, true); + dialog.set_secondary_text("Sorry, this feature has not yet been implemented."); + dialog.set_title("Feature not available"); + dialog.run(); } bool -- 2.7.4