@b4n requested changes on this pull request.

This is way too specific and fragile.  Do this instead:

```diff
diff --git a/src/sidebar.c b/src/sidebar.c
index 9d004f392..435e31394 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)));
```



-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3681#pullrequestreview-1738075099
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3681/review/[email protected]>

Reply via email to