Add default OK button to "JACK exited" dialog.
authorDavid Robillard <d@drobilla.net>
Fri, 18 Nov 2011 20:22:49 +0000 (20:22 +0000)
committerDavid Robillard <d@drobilla.net>
Fri, 18 Nov 2011 20:22:49 +0000 (20:22 +0000)
Remove odd pointless Gtk::ButtonsType casts.

Related to ticket 4364.  As of this commit all uses of MessageDialog are
verified to have buttons (we use BUTTONS_NONE occasionally, but in all
cases we add buttons later).

git-svn-id: svn://localhost/ardour2/branches/3.0@10686 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui.cc
gtk2_ardour/main.cc

index 2a1ab97b2669191a2955f466a855b6c3d6c8b874..498732df895790fb1d7e70b234aab6889ee4ae85 100644 (file)
@@ -3050,7 +3050,7 @@ ARDOUR_UI::display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* lis
                                    _("No files were ready for clean-up"),
                                    true,
                                    Gtk::MESSAGE_INFO,
-                                   (Gtk::ButtonsType)(Gtk::BUTTONS_OK)  );
+                                   Gtk::BUTTONS_OK);
                msgd.set_title (_("Clean-up"));
                msgd.set_secondary_text (_("If this seems suprising, \n\
 check for any existing snapshots.\n\
@@ -3176,7 +3176,7 @@ ARDOUR_UI::cleanup ()
        MessageDialog checker (_("Are you sure you want to clean-up?"),
                                true,
                                Gtk::MESSAGE_QUESTION,
-                               (Gtk::ButtonsType)(Gtk::BUTTONS_NONE));
+                               Gtk::BUTTONS_NONE);
 
        checker.set_title (_("Clean-up"));
 
index 6c868978b1e5bb7252ec119230b93545b36886c6..fc07758eea91e321a525613ee8aa4c59d762122a 100644 (file)
@@ -74,9 +74,9 @@ void
 gui_jack_error ()
 {
        MessageDialog win (string_compose (_("%1 could not connect to JACK."), PROGRAM_NAME),
-                    false,
-                    Gtk::MESSAGE_INFO,
-                    (Gtk::ButtonsType)(Gtk::BUTTONS_NONE));
+                          false,
+                          Gtk::MESSAGE_INFO,
+                          Gtk::BUTTONS_NONE);
 win.set_secondary_text(_("There are several possible reasons:\n\
 \n\
 1) JACK is not running.\n\
@@ -405,7 +405,7 @@ tell_about_jack_death (void* /* ignored */)
 {
        if (AudioEngine::instance()->processed_frames() == 0) {
                /* died during startup */
-               MessageDialog msg (_("JACK exited"), false, Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK);
+               MessageDialog msg (_("JACK exited"), false);
                msg.set_position (Gtk::WIN_POS_CENTER);
                msg.set_secondary_text (string_compose (_(
 "JACK exited unexpectedly, and without notifying %1.\n\
@@ -421,7 +421,7 @@ Click OK to exit %1."), PROGRAM_NAME));
 
                /* engine has already run, so this is a mid-session JACK death */
 
-               MessageDialog* msg = manage (new MessageDialog (_("JACK exited"), false, Gtk::MESSAGE_INFO, Gtk::BUTTONS_NONE));
+               MessageDialog* msg = manage (new MessageDialog (_("JACK exited"), false));
                msg->set_secondary_text (string_compose (_(
 "JACK exited unexpectedly, and without notifying %1.\n\
 \n\