evince r3177 - in trunk: . shell
- From: carlosgc svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3177 - in trunk: . shell
- Date: Sat, 13 Sep 2008 11:09:06 +0000 (UTC)
Author: carlosgc
Date: Sat Sep 13 11:09:06 2008
New Revision: 3177
URL: http://svn.gnome.org/viewvc/evince?rev=3177&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/shell/ev-window.c
Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c (original)
+++ trunk/shell/ev-window.c Sat Sep 13 11:09:06 2008
@@ -4899,20 +4899,10 @@
}
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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]