[gtk+] inspector: Add type column to statistics
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Add type column to statistics
- Date: Tue, 14 Oct 2014 12:18:27 +0000 (UTC)
commit 525676435d7f9cdec59224edef1a4040304ed477
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 13 06:01:51 2014 +0200
inspector: Add type column to statistics
Rename old type column to "type name"
gtk/inspector/statistics.c | 4 +++-
gtk/inspector/statistics.ui | 13 +++++++------
2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/gtk/inspector/statistics.c b/gtk/inspector/statistics.c
index 8d1f598..1950301 100644
--- a/gtk/inspector/statistics.c
+++ b/gtk/inspector/statistics.c
@@ -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,
diff --git a/gtk/inspector/statistics.ui b/gtk/inspector/statistics.ui
index af3a503..3066d93 100644
--- a/gtk/inspector/statistics.ui
+++ b/gtk/inspector/statistics.ui
@@ -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">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]