summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-10 02:14:02 +0100
committerinfirit <[email protected]>2014-12-10 02:14:02 +0100
commit49ec363e5cd53042368bbc5056f6d5aa57e0b0b5 (patch)
tree3431d74c1cd51777e7ced22980027ac00152c4cf
parentbf6e3391b82844e8b6aec0f26332b9e2df41edf8 (diff)
downloadatril-49ec363e5cd53042368bbc5056f6d5aa57e0b0b5.tar.bz2
atril-49ec363e5cd53042368bbc5056f6d5aa57e0b0b5.tar.xz
Give the keyboard focus to the view when sidebar is closed
Taken from evince commit: 2bbc796272c012031832232eda2517e4517c85cd From: Carlos Garcia Campos <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=645109
-rw-r--r--shell/ev-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 6e01708f..12341201 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5101,6 +5101,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);
}
}