diff options
Diffstat (limited to 'sysprof.c')
-rw-r--r-- | sysprof.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -400,7 +400,8 @@ get_current_object (Application *app) GtkTreeIter selected; char *object; - if (gtk_tree_selection_get_selected (app->object_selection, &model, &selected)) + if (gtk_tree_selection_get_selected ( + app->object_selection, &model, &selected)) { gtk_tree_model_get (model, &selected, DESCENDANTS_OBJECT, &object, @@ -1112,20 +1113,17 @@ on_object_selection_changed (GtkTreeSelection *selection, { Application *app = data; - set_busy (app->main_window, TRUE); - update_screenshot_window (app); if (!app->inhibit_forced_redraw) gdk_window_process_all_updates (); /* Display updated selection */ - fill_descendants_tree (app); fill_callers_list (app); +#if 0 if (get_current_object (app)) expand_descendants_tree (app); - - set_busy (app->main_window, FALSE); +#endif } #if 0 @@ -1358,9 +1356,7 @@ connect_signals (Application *app) { app->screenshot_item, "activate", on_screenshot_activated, app }, { app->quit_item, "activate", on_delete, NULL }, { app->about_item, "activate", on_about_activated, app }, -#if 0 { app->object_selection, "changed", on_object_selection_changed, app }, -#endif { app->callers_view, "row-activated", on_callers_row_activated, app }, { app->descendants_view, "row-activated", on_descendants_row_activated, app }, { app->descendants_view, "row-expanded", on_descendants_row_expanded_or_collapsed, app }, @@ -1487,6 +1483,8 @@ build_gui (Application *app) gtk_tree_view_column_set_expand (col, TRUE); gtk_tree_view_set_expander_column (app->descendants_view, col); + app->object_selection = gtk_tree_view_get_selection (app->descendants_view); + /* screenshot window */ /* set sizes */ |