+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):
}
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);
}
}