Skip to content
Browse files

Focus the file view when switching to sidebar using the keyboard

Thanks to Giuseppe Corbelli.
  • Loading branch information...
1 parent 6da7fc7 commit a3c89b94a75378f74295317771bfe5d172cfdac8 @techee techee committed Apr 4, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 gproject/src/gproject-sidebar.c
View
3 gproject/src/gproject-sidebar.c
@@ -689,6 +689,7 @@ void gprj_sidebar_init(void)
GtkTreeViewColumn *column;
GtkTreeSelection *sel;
PangoFontDescription *pfd;
+ GList *focus_chain = NULL;
s_file_view_vbox = gtk_vbox_new(FALSE, 0);
@@ -814,6 +815,8 @@ void gprj_sidebar_init(void)
/**** the rest ****/
+ focus_chain = g_list_prepend(focus_chain, s_file_view);
+ gtk_container_set_focus_chain(GTK_CONTAINER(s_file_view_vbox), focus_chain);
scrollwin = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);

0 comments on commit a3c89b9

Please sign in to comment.
Something went wrong with that request. Please try again.