[sysprof/newui: 11/24] Hook up selection
- From: SÃren Sandmann Pedersen <ssp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/newui: 11/24] Hook up selection
- Date: Wed, 29 Jun 2011 06:38:48 +0000 (UTC)
commit c513338648426803afaf0d218b06a116b3f49024
Author: SÃren Sandmann Pedersen <sandmann daimi au dk>
Date: Tue Nov 9 08:56:11 2010 -0500
Hook up selection
sysprof.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/sysprof.c b/sysprof.c
index d7d125e..29a48b8 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]