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>2007-06-29 08:16:49 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-06-29 08:16:49 (GMT)
commitcaa2c49b773e42beb5f557ea3b73598b08dea2fc (patch)
tree5fbbdce60a4d9b267349ef213dfcdcfade010123 /shell
parent0fc58f120a81a23d1ab13989e0fc19ee42543323 (diff)
Do not change sidebar chrome flag when pressing F9 key in presentation
2007-06-29 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_view_sidebar_cb): Do not change sidebar chrome flag when pressing F9 key in presentation mode. svn path=/trunk/; revision=2527
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index eafdb29..7e7d94c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1093,7 +1093,7 @@ ev_window_setup_document (EvWindow *ev_window)
0, 0, 1.0,
&page_width, &page_height);
scale = (gdouble)128 / (gdouble)page_width;
-
+
rc = ev_render_context_new (0, 0, scale);
ev_window->priv->thumbnail_job = ev_job_thumbnail_new (document, rc);
g_signal_connect (ev_window->priv->thumbnail_job, "finished",
@@ -3798,6 +3798,9 @@ ev_window_view_toolbar_cb (GtkAction *action, EvWindow *ev_window)
static void
ev_window_view_sidebar_cb (GtkAction *action, EvWindow *ev_window)
{
+ if (ev_view_get_presentation (EV_VIEW (ev_window->priv->view)))
+ return;
+
update_chrome_flag (ev_window, EV_CHROME_SIDEBAR,
gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)));
}