summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-18 20:22:49 +0000
committerDavid Robillard <d@drobilla.net>2011-11-18 20:22:49 +0000
commit0e2173d2aeab277af4be39efd1a1aa5dda935dab (patch)
tree74177bf16ceb801ab0df386466e23fa7919ad4ab /gtk2_ardour/main.cc
parent200832923a1fe10411e48b9e42c3b3b087f683c3 (diff)
Add default OK button to "JACK exited" dialog.
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
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index 6c868978b1..fc07758eea 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -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\