Fix Switch to Sidebar shortcut so that it works for whichever widget
is in the current sidebar notebook page (fixes #1967104). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2602 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
380cec5a69
commit
6f361569ed
@ -26,6 +26,9 @@
|
||||
when using documentation comments e.g. for TODO.
|
||||
* plugins/pluginmacros.h:
|
||||
Add deprecated p_encoding alias for p_encodings.
|
||||
* src/keybindings.c:
|
||||
Fix Switch to Sidebar shortcut so that it works for whichever widget
|
||||
is in the current sidebar notebook page (fixes #1967104).
|
||||
|
||||
|
||||
2008-05-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
@ -1183,9 +1183,10 @@ static void cb_func_switch_sidebar(G_GNUC_UNUSED guint key_id)
|
||||
if (ui_prefs.sidebar_visible)
|
||||
{
|
||||
gint page_num = gtk_notebook_get_current_page(GTK_NOTEBOOK(app->treeview_notebook));
|
||||
GtkWidget *swin = gtk_notebook_get_nth_page(GTK_NOTEBOOK(app->treeview_notebook), page_num);
|
||||
GtkWidget *page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(app->treeview_notebook), page_num);
|
||||
|
||||
gtk_widget_grab_focus(gtk_bin_get_child(GTK_BIN(swin)));
|
||||
/* gtk_widget_grab_focus() won't work because of the scrolled window containers */
|
||||
gtk_widget_child_focus(page, GTK_DIR_TAB_FORWARD);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user