From: Carlos Garcia Campos Date: Sun, 20 Mar 2011 10:27:41 +0000 (+0100) Subject: Give the keyboard focus to the view when sidebar is closed X-Git-Tag: EVINCE_2_91_92~12 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=2bbc796272c012031832232eda2517e4517c85cd;p=evince.git Give the keyboard focus to the view when sidebar is closed Fixes bug #645109 --- diff --git a/shell/ev-window.c b/shell/ev-window.c index 63eb87fa..9b08e5e2 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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); } }