]> www.fi.muni.cz Git - evince.git/commitdiff
Use the message area to show errors when lauching external uris instead of
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 13 Sep 2008 11:09:06 +0000 (11:09 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 13 Sep 2008 11:09:06 +0000 (11:09 +0000)
2008-09-13  Carlos Garcia Campos  <carlosgc@gnome.org>

* 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

ChangeLog
shell/ev-window.c

index f418b99024377e03c64596ce355d9d3693a8af0e..a56340e5876ebc8fea2f617089bce8842ab87f44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-13  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * shell/ev-window.c: (launch_external_uri):
index e6b0903f1adea9c8baec2653958490c0bd54f6e8..5c345e3941529975786398086ab22f6c749e9a19 100644 (file)
@@ -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);
        }
 }