summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2010-11-09 08:56:11 -0500
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2011-06-29 02:48:21 -0400
commitfaab5f84e59ceff827d9399ce1330c7fb27af896 (patch)
tree0d5c3853d7b55e40c09465ccca14d4afa931ad23
parente0e8eedcfb54a5f3ee819e9bf9259afcdf56d7f9 (diff)
Hook up selection
-rw-r--r--sysprof.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sysprof.c b/sysprof.c
index 90a0b0f..70ac98a 100644
--- a/sysprof.c
+++ b/sysprof.c
@@ -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 */