forked from AuroraMiddleware/gtk
inspector: Make all statistics columns visible always
This commit is contained in:
parent
8d06b84670
commit
e36bfb45cd
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user