evince r3243 - in trunk: . shell



Author: carlosgc
Date: Sat Nov  1 11:25:07 2008
New Revision: 3243
URL: http://svn.gnome.org/viewvc/evince?rev=3243&view=rev

Log:
2008-11-01  Carlos Garcia Campos  <carlosgc gnome org>

	* shell/ev-window.c: (ev_window_cmd_help_contents):

	Use gtk_show_uri() when availale to display help contents.

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 Nov  1 11:25:07 2008
@@ -3318,6 +3318,24 @@
 	ev_view_autoscroll_start (EV_VIEW (ev_window->priv->view));
 }
 
+#if GTK_CHECK_VERSION (2, 14, 0)
+static void
+ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
+{
+	GError  *error = NULL;
+
+	gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (ev_window)),
+		      "ghelp:evince",
+		      GDK_CURRENT_TIME,
+		      &error);
+	if (error) {
+		ev_window_error_message (GTK_WINDOW (ev_window),
+					 _("There was an error displaying help"),
+					 error);
+		g_error_free (error);
+	}
+}
+#else /* !GTK_CHECK_VERSION (2, 14, 0) */
 static void
 ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
 {
@@ -3366,6 +3384,7 @@
 	}
 	g_free (command);
 }
+#endif /* GTK_CHECK_VERSION (2, 14, 0) */
 
 static void
 ev_window_cmd_leave_fullscreen (GtkAction *action, EvWindow *window)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]