[evince] Give the keyboard focus to the view when sidebar is closed



commit 2bbc796272c012031832232eda2517e4517c85cd
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Mar 20 11:27:41 2011 +0100

    Give the keyboard focus to the view when sidebar is closed
    
    Fixes bug #645109

 shell/ev-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 63eb87f..9b08e5e 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);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]