summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-06-22 14:38:32 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-06-22 14:38:32 +0000
commit260c1c1a1360dac54c09baed692e7debb2d95125 (patch)
tree5f52f3643b4087a66339fbc17e515612579113b6
parent5bb9c94e91ae1ac811da627a16307664c34cfd6e (diff)
remove some potential HCI confusion for Gtkmm2ext::UI::popup_error() by using a standard MessageDialog (as noticed by thorwil)
git-svn-id: svn://localhost/ardour2/branches/3.0@9756 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/gtkmm2ext/gtk_ui.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc
index bebe6c09a9..35517e9604 100644
--- a/libs/gtkmm2ext/gtk_ui.cc
+++ b/libs/gtkmm2ext/gtk_ui.cc
@@ -650,20 +650,19 @@ UI::handle_fatal (const char *message)
void
UI::popup_error (const string& 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);
+ msg.set_title (string_compose (_("I'm sorry %1, I can't do that"), g_get_user_name()));
+ msg.set_wmclass (X_("error"), name());
+ msg.set_position (WIN_POS_MOUSE);
+ msg.run ();
}
-
void
UI::flush_pending ()
{