summaryrefslogtreecommitdiff
path: root/sysprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysprof.c')
-rw-r--r--sysprof.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/sysprof.c b/sysprof.c
index 70ac98a..34f57db 100644
--- a/sysprof.c
+++ b/sysprof.c
@@ -486,10 +486,22 @@ add_callers (GtkListStore *list_store,
Profile *profile,
ProfileCaller *callers)
{
+ GtkTreeIter iter;
+
+ if (!callers)
+ {
+ gtk_list_store_append (list_store, &iter);
+
+ gtk_list_store_set (
+ list_store, &iter,
+ CALLERS_NAME, "",
+ CALLERS_SELF, 0.0,
+ CALLERS_TOTAL, 0.0, -1);
+ }
+
while (callers)
{
gchar *name;
- GtkTreeIter iter;
double profile_size = profile_get_size (profile);
if (callers->name)
@@ -1120,6 +1132,14 @@ on_object_selection_changed (GtkTreeSelection *selection,
fill_callers_list (app);
+ gtk_tree_view_columns_autosize (app->callers_view);
+
+ gtk_widget_set_size_request (app->callers_view, 2, 2);
+ gtk_widget_hide (app->callers_view);
+ gtk_widget_show (app->callers_view);
+
+ gtk_widget_set_size_request (app->callers_view, -1, -1);
+
#if 0
if (get_current_object (app))
expand_descendants_tree (app);