inspector: Add type column to statistics
Rename old type column to "type name"
This commit is contained in:
@ -55,6 +55,7 @@ typedef struct {
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
COLUMN_TYPE,
|
COLUMN_TYPE,
|
||||||
|
COLUMN_TYPE_NAME,
|
||||||
COLUMN_SELF1,
|
COLUMN_SELF1,
|
||||||
COLUMN_CUMULATIVE1,
|
COLUMN_CUMULATIVE1,
|
||||||
COLUMN_SELF2,
|
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_append (GTK_LIST_STORE (sl->priv->model), &treeiter);
|
||||||
gtk_list_store_set (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_SELF1, data->self1,
|
||||||
COLUMN_CUMULATIVE1, data->cumulative1,
|
COLUMN_CUMULATIVE1, data->cumulative1,
|
||||||
COLUMN_SELF2, data->self2,
|
COLUMN_SELF2, data->self2,
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
<interface domain="gtk30">
|
<interface domain="gtk30">
|
||||||
<object class="GtkListStore" id="model">
|
<object class="GtkListStore" id="model">
|
||||||
<columns>
|
<columns>
|
||||||
|
<column type="GType"/>
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
<column type="gint"/>
|
<column type="gint"/>
|
||||||
<column type="gint"/>
|
<column type="gint"/>
|
||||||
@ -47,14 +48,14 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn">
|
<object class="GtkTreeViewColumn">
|
||||||
<property name="visible">True</property>
|
<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>
|
<property name="title" translatable="yes">Type</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText">
|
<object class="GtkCellRendererText">
|
||||||
<property name="scale">0.8</property>
|
<property name="scale">0.8</property>
|
||||||
</object>
|
</object>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="text">0</attribute>
|
<attribute name="text">1</attribute>
|
||||||
</attributes>
|
</attributes>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
@ -62,7 +63,7 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="column_self1">
|
<object class="GtkTreeViewColumn" id="column_self1">
|
||||||
<property name="visible">False</property>
|
<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>
|
<property name="title" translatable="yes">Self 1</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="renderer_self1">
|
<object class="GtkCellRendererText" id="renderer_self1">
|
||||||
@ -74,7 +75,7 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="column_cumulative1">
|
<object class="GtkTreeViewColumn" id="column_cumulative1">
|
||||||
<property name="visible">False</property>
|
<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>
|
<property name="title" translatable="yes">Cumulative 1</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="renderer_cumulative1">
|
<object class="GtkCellRendererText" id="renderer_cumulative1">
|
||||||
@ -86,7 +87,7 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="column_self2">
|
<object class="GtkTreeViewColumn" id="column_self2">
|
||||||
<property name="visible">False</property>
|
<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>
|
<property name="title" translatable="yes">Self 2</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="renderer_self2">
|
<object class="GtkCellRendererText" id="renderer_self2">
|
||||||
@ -98,7 +99,7 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="column_cumulative2">
|
<object class="GtkTreeViewColumn" id="column_cumulative2">
|
||||||
<property name="visible">False</property>
|
<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>
|
<property name="title" translatable="yes">Cumulative 2</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="renderer_cumulative2">
|
<object class="GtkCellRendererText" id="renderer_cumulative2">
|
||||||
|
|||||||
Reference in New Issue
Block a user