Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-11-01 11:25:07 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-11-01 11:25:07 (GMT)
commitcabe1204f13b319658b4f81820f668fa751d67d6 (patch)
treeeb87f15178eaf2ca1290b669b4f395280bded2d2
parent81c134286178c1b09b7505c1a9e8fba0c612fe1f (diff)
Use gtk_show_uri() when availale to display help contents.
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. svn path=/trunk/; revision=3243
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-window.c19
2 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 31b92dd..be86703 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2008-10-31 Carlos Garcia Campos <carlosgc@gnome.org>
* configure.ac:
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 60ea87c..386a280 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3318,6 +3318,24 @@ ev_window_cmd_view_autoscroll (GtkAction *action, EvWindow *ev_window)
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 @@ ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
}
g_free (command);
}
+#endif /* GTK_CHECK_VERSION (2, 14, 0) */
static void
ev_window_cmd_leave_fullscreen (GtkAction *action, EvWindow *window)