]> www.fi.muni.cz Git - evince.git/commitdiff
Give the keyboard focus to the view when sidebar is closed
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 20 Mar 2011 10:27:41 +0000 (11:27 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 20 Mar 2011 10:27:41 +0000 (11:27 +0100)
Fixes bug #645109

shell/ev-window.c

index 63eb87fae4f39baef155bce6bee204b8b5402f6b..9b08e5e2ee35a1d891ae9f93463dbd16aa288310 100644 (file)
@@ -4873,6 +4873,8 @@ ev_window_sidebar_visibility_changed_cb (EvSidebar  *ev_sidebar,
                if (ev_window->priv->metadata)
                        ev_metadata_set_boolean (ev_window->priv->metadata, "sidebar_visibility",
                                                 visible);
+               if (!visible)
+                       gtk_widget_grab_focus (ev_window->priv->view);
        }
 }