Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-09-13 11:09:06 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-09-13 11:09:06 (GMT)
commitd1ae25cdb0f86c2fc8ce406fd3b53f91a5d002ab (patch)
treeaf1f11369d8f1bc69eabb397796e01f99a48b4ab /shell
parentd7b96b2211ecffd77d9318e1971191f4c4020b47 (diff)
Use the message area to show errors when lauching external uris instead of
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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index e6b0903..5c345e3 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);
}
}