From: Carlos Garcia Campos Date: Sat, 13 Sep 2008 11:09:06 +0000 (+0000) Subject: Use the message area to show errors when lauching external uris instead of X-Git-Tag: EVINCE_2_24_0~27 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;ds=sidebyside;h=d1ae25cdb0f86c2fc8ce406fd3b53f91a5d002ab;p=evince.git Use the message area to show errors when lauching external uris instead of 2008-09-13 Carlos Garcia Campos * shell/ev-window.c: (launch_external_uri): Use the message area to show errors when lauching external uris instead of a popup window. svn path=/trunk/; revision=3177 --- diff --git a/ChangeLog b/ChangeLog index f418b990..a56340e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-09-13 Carlos Garcia Campos + + * shell/ev-window.c: (launch_external_uri): + + Use the message area to show errors when lauching external uris + instead of a popup window. + 2008-09-13 Carlos Garcia Campos * shell/ev-window.c: (launch_external_uri): diff --git a/shell/ev-window.c b/shell/ev-window.c index e6b0903f..5c345e39 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -4899,20 +4899,10 @@ launch_external_uri (EvWindow *window, EvLinkAction *action) } if (ret == FALSE) { - GtkWidget *dialog; - - dialog = gtk_message_dialog_new (GTK_WINDOW (window), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_CLOSE, - _("Unable to open external link")); - gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), - error->message, uri); - g_signal_connect (dialog, "response", - G_CALLBACK (gtk_widget_destroy), - NULL); - gtk_widget_show (dialog); - g_error_free(error); + ev_window_error_message (GTK_WINDOW (window), + _("Unable to open external link"), + error); + g_error_free (error); } }