From 18695cdfe3cc600360ad15d37d55eb6a4e8d4a2f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 7 Jan 2008 20:14:16 +0000 Subject: merge keybindings/menus from SAE; report duplicate port errors during session loading more usefully; do not do disk i/o from inactive tracks (related: move Route::_active to IO::_active git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2834 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/gtkmm2ext/gtk_ui.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'libs/gtkmm2ext/gtk_ui.cc') diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc index 8622aae9b4..eed78e1fdb 100644 --- a/libs/gtkmm2ext/gtk_ui.cc +++ b/libs/gtkmm2ext/gtk_ui.cc @@ -560,19 +560,17 @@ UI::handle_fatal (const char *message) void UI::popup_error (const char *text) { - PopUp *pup; - if (!caller_is_ui_thread()) { error << "non-UI threads can't use UI::popup_error" << endmsg; return; } - - pup = new PopUp (WIN_POS_MOUSE, 0, true); - pup->set_text (text); - pup->touch (); -} + MessageDialog msg (text, true, MESSAGE_ERROR, BUTTONS_OK); + msg.set_title (_("Error")); + msg.set_position (WIN_POS_MOUSE); + msg.run (); +} void UI::flush_pending () -- cgit v1.2.3