[gtk+] inspector: Make all statistics columns visible always
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Make all statistics columns visible always
- Date: Tue, 14 Oct 2014 12:18:43 +0000 (UTC)
commit e36bfb45cdcb65b32cafc856d13f1cb12c79a05f
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 13 10:19:34 2014 +0200
inspector: Make all statistics columns visible always
gtk/inspector/statistics.c | 14 --------------
gtk/inspector/statistics.ui | 8 ++++----
2 files changed, 4 insertions(+), 18 deletions(-)
---
diff --git a/gtk/inspector/statistics.c b/gtk/inspector/statistics.c
index f6f04a3..4e9570c 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 3066d93..8a97856 100644
--- a/gtk/inspector/statistics.ui
+++ b/gtk/inspector/statistics.ui
@@ -62,7 +62,7 @@
</child>
<child>
<object class="GtkTreeViewColumn" id="column_self1">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="sort-column-id">2</property>
<property name="title" translatable="yes">Self 1</property>
<child>
@@ -74,7 +74,7 @@
</child>
<child>
<object class="GtkTreeViewColumn" id="column_cumulative1">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="sort-column-id">3</property>
<property name="title" translatable="yes">Cumulative 1</property>
<child>
@@ -86,7 +86,7 @@
</child>
<child>
<object class="GtkTreeViewColumn" id="column_self2">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="sort-column-id">4</property>
<property name="title" translatable="yes">Self 2</property>
<child>
@@ -98,7 +98,7 @@
</child>
<child>
<object class="GtkTreeViewColumn" id="column_cumulative2">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="sort-column-id">5</property>
<property name="title" translatable="yes">Cumulative 2</property>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]