inspector: Add type column to statistics

Rename old type column to "type name"
This commit is contained in:
Benjamin Otte 2014-10-13 06:01:51 +02:00
parent db8cdd6392
commit 525676435d
2 changed files with 10 additions and 7 deletions

View File

@ -55,6 +55,7 @@ typedef struct {
enum
{
COLUMN_TYPE,
COLUMN_TYPE_NAME,
COLUMN_SELF1,
COLUMN_CUMULATIVE1,
COLUMN_SELF2,
@ -149,7 +150,8 @@ refresh_clicked (GtkWidget *button, GtkInspectorStatistics *sl)
{
gtk_list_store_append (GTK_LIST_STORE (sl->priv->model), &treeiter);
gtk_list_store_set (GTK_LIST_STORE (sl->priv->model), &treeiter,
COLUMN_TYPE, g_type_name (data->type),
COLUMN_TYPE, data->type,
COLUMN_TYPE_NAME, g_type_name (data->type),
COLUMN_SELF1, data->self1,
COLUMN_CUMULATIVE1, data->cumulative1,
COLUMN_SELF2, data->self2,

View File

@ -2,6 +2,7 @@
<interface domain="gtk30">
<object class="GtkListStore" id="model">
<columns>
<column type="GType"/>
<column type="gchararray"/>
<column type="gint"/>
<column type="gint"/>
@ -47,14 +48,14 @@
<child>
<object class="GtkTreeViewColumn">
<property name="visible">True</property>
<property name="sort-column-id">0</property>
<property name="sort-column-id">1</property>
<property name="title" translatable="yes">Type</property>
<child>
<object class="GtkCellRendererText">
<property name="scale">0.8</property>
</object>
<attributes>
<attribute name="text">0</attribute>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
@ -62,7 +63,7 @@
<child>
<object class="GtkTreeViewColumn" id="column_self1">
<property name="visible">False</property>
<property name="sort-column-id">1</property>
<property name="sort-column-id">2</property>
<property name="title" translatable="yes">Self 1</property>
<child>
<object class="GtkCellRendererText" id="renderer_self1">
@ -74,7 +75,7 @@
<child>
<object class="GtkTreeViewColumn" id="column_cumulative1">
<property name="visible">False</property>
<property name="sort-column-id">2</property>
<property name="sort-column-id">3</property>
<property name="title" translatable="yes">Cumulative 1</property>
<child>
<object class="GtkCellRendererText" id="renderer_cumulative1">
@ -86,7 +87,7 @@
<child>
<object class="GtkTreeViewColumn" id="column_self2">
<property name="visible">False</property>
<property name="sort-column-id">3</property>
<property name="sort-column-id">4</property>
<property name="title" translatable="yes">Self 2</property>
<child>
<object class="GtkCellRendererText" id="renderer_self2">
@ -98,7 +99,7 @@
<child>
<object class="GtkTreeViewColumn" id="column_cumulative2">
<property name="visible">False</property>
<property name="sort-column-id">4</property>
<property name="sort-column-id">5</property>
<property name="title" translatable="yes">Cumulative 2</property>
<child>
<object class="GtkCellRendererText" id="renderer_cumulative2">