From 595045c3fcd07bd4a8b8bd97d54e88638f936184 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 9 Jun 2023 18:00:43 -0700 Subject: [PATCH] libsysprof-gtk: expand to process list by default --- src/libsysprof-gtk/sysprof-callgraph-view.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsysprof-gtk/sysprof-callgraph-view.c b/src/libsysprof-gtk/sysprof-callgraph-view.c index edb5f731..83974b5c 100644 --- a/src/libsysprof-gtk/sysprof-callgraph-view.c +++ b/src/libsysprof-gtk/sysprof-callgraph-view.c @@ -189,6 +189,7 @@ sysprof_callgraph_view_reload_cb (GObject *object, g_autoptr(GtkMultiSelection) model = NULL; g_autoptr(GtkSortListModel) sort_model = NULL; g_autoptr(GtkTreeListModel) tree = NULL; + g_autoptr(GtkTreeListRow) first = NULL; g_autoptr(GError) error = NULL; GtkSorter *column_sorter; @@ -217,6 +218,9 @@ sysprof_callgraph_view_reload_cb (GObject *object, if (SYSPROF_CALLGRAPH_VIEW_GET_CLASS (self)->load) SYSPROF_CALLGRAPH_VIEW_GET_CLASS (self)->load (self, callgraph); + + if ((first = gtk_tree_list_model_get_row (tree, 0))) + gtk_tree_list_row_set_expanded (first, TRUE); } static gboolean