Skip to content

Commit

Permalink
Merge pull request geany#3681 from BayashiPascal/master
Browse files Browse the repository at this point in the history
Fix focusing the symbol list through key binding
  • Loading branch information
b4n committed Dec 9, 2023
2 parents aaaf1ed + ea2458e commit ffaa383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sidebar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ void sidebar_focus_symbols_tab(void)
if (ui_prefs.sidebar_visible && interface_prefs.sidebar_symbol_visible)
{
GtkNotebook *notebook = GTK_NOTEBOOK(main_widgets.sidebar_notebook);
GtkWidget *symbol_list_scrollwin = gtk_notebook_get_nth_page(notebook, TREEVIEW_SYMBOL);
GtkWidget *symbol_list_scrollwin = ui_lookup_widget(main_widgets.window, "scrolledwindow2");

gtk_notebook_set_current_page(notebook, TREEVIEW_SYMBOL);
gtk_widget_grab_focus(gtk_bin_get_child(GTK_BIN(symbol_list_scrollwin)));
Expand Down

0 comments on commit ffaa383

Please sign in to comment.