aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/expert_comp_table.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-04-20 23:10:03 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-04-20 23:10:03 +0000
commit94e4258172ffab5e344c34534adc3384a93e55a2 (patch)
tree652bb81b0c4f85e2010dc1a28e94d97695d2eee0 /gtk/expert_comp_table.c
parent02926636da1b58b27c173fc352f2046f2b2a44fc (diff)
Fix bug #1547: Expert Info Composite column "Count" is not sorting numerically
svn path=/trunk/; revision=21485
Diffstat (limited to 'gtk/expert_comp_table.c')
-rw-r--r--gtk/expert_comp_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/expert_comp_table.c b/gtk/expert_comp_table.c
index eeaaaac58f..7e15e523fd 100644
--- a/gtk/expert_comp_table.c
+++ b/gtk/expert_comp_table.c
@@ -612,7 +612,7 @@ init_error_table(error_equiv_table *err, guint16 num_procs, GtkWidget *vbox)
G_TYPE_STRING, /* Group */
G_TYPE_STRING, /* Protocol */
G_TYPE_STRING, /* Summary */
- G_TYPE_STRING); /* Count */
+ G_TYPE_INT); /* Count */
/* Create a view */
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
@@ -763,7 +763,7 @@ init_error_table_row(error_equiv_table *err, const expert_info_t *expert_data)
/* Update the tree with new count for this event */
store = GTK_TREE_STORE(gtk_tree_view_get_model(err->tree_view));
- gtk_tree_store_set(store, &err->procedures[row].iter, COUNT_COLUMN, (char *)g_strdup_printf("%d", err->procedures[row].count), -1);
+ gtk_tree_store_set(store, &err->procedures[row].iter, COUNT_COLUMN, err->procedures[row].count, -1);
#endif
}