diff --git a/src/sidebar.c b/src/sidebar.c index 9d004f392f..435e313947 100644 --- a/src/sidebar.c +++ b/src/sidebar.c @@ -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)));