diff --git a/gtk/inspector/statistics.c b/gtk/inspector/statistics.c index f6f04a30f8..4e9570c3e4 100644 --- a/gtk/inspector/statistics.c +++ b/gtk/inspector/statistics.c @@ -40,7 +40,6 @@ struct _GtkInspectorStatisticsPrivate GtkCellRenderer *renderer_self2; GtkTreeViewColumn *column_cumulative2; GtkCellRenderer *renderer_cumulative2; - gint snapshot_count; GHashTable *counts; }; @@ -125,17 +124,6 @@ refresh_clicked (GtkWidget *button, GtkInspectorStatistics *sl) TypeData *data; GtkTreeIter treeiter; - if (sl->priv->snapshot_count == 0) - { - gtk_tree_view_column_set_visible (sl->priv->column_self2, TRUE); - gtk_tree_view_column_set_visible (sl->priv->column_cumulative2, TRUE); - } - else if (sl->priv->snapshot_count == 1) - { - gtk_tree_view_column_set_visible (sl->priv->column_self1, TRUE); - gtk_tree_view_column_set_visible (sl->priv->column_cumulative1, TRUE); - } - update_type_counts (sl); gtk_list_store_clear (GTK_LIST_STORE (sl->priv->model)); @@ -153,8 +141,6 @@ refresh_clicked (GtkWidget *button, GtkInspectorStatistics *sl) COLUMN_CUMULATIVE2, data->cumulative2, -1); } - - sl->priv->snapshot_count++; } static gboolean diff --git a/gtk/inspector/statistics.ui b/gtk/inspector/statistics.ui index 3066d93887..8a97856a6f 100644 --- a/gtk/inspector/statistics.ui +++ b/gtk/inspector/statistics.ui @@ -62,7 +62,7 @@ - False + True 2 Self 1 @@ -74,7 +74,7 @@ - False + True 3 Cumulative 1 @@ -86,7 +86,7 @@ - False + True 4 Self 2 @@ -98,7 +98,7 @@ - False + True 5 Cumulative 2