diff options
Diffstat (limited to 'libs/gtkmm2ext/gtk_ui.cc')
-rw-r--r-- | libs/gtkmm2ext/gtk_ui.cc | 11 |
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 () { |