]> www.fi.muni.cz Git - evince.git/commitdiff
Do not change sidebar chrome flag when pressing F9 key in presentation
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 29 Jun 2007 08:16:49 +0000 (08:16 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Fri, 29 Jun 2007 08:16:49 +0000 (08:16 +0000)
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

ChangeLog
shell/ev-window.c

index 7b0e60554c7176c7d2ed6d0b91ea2c86bfee0ebd..c8d60d243724c1ee9eedb7dec5309ea48bcbc015 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+       
 2007-06-29  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * backend/pdf/ev-poppler.cc:
index eafdb292ac5c3cd37754474e8b31690174977780..7e7d94caa83495821b4d10cc999c83c1f8ab8f19 100644 (file)
@@ -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)));
 }