summaryrefslogtreecommitdiff
path: root/gtk/gtktreedatalist.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2003-11-20 20:14:22 +0000
committerJonathan Blandford <jrb@src.gnome.org>2003-11-20 20:14:22 +0000
commit5b50d251d453f6e669abf8f23e633ba566ff3ab0 (patch)
tree25fc8c8635258206611c2c579d0a3fe8a0048f96 /gtk/gtktreedatalist.c
parentfb2e12e8c8887fae3056508ecce870cbb2fc8097 (diff)
downloadgtk+-5b50d251d453f6e669abf8f23e633ba566ff3ab0.tar.gz
Patch from David Hampton to fix sorting on booleans.
Thu Nov 20 14:51:41 2003 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch from David Hampton to fix sorting on booleans.
Diffstat (limited to 'gtk/gtktreedatalist.c')
-rw-r--r--gtk/gtktreedatalist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktreedatalist.c b/gtk/gtktreedatalist.c
index c09ac0683d..b4bef80ced 100644
--- a/gtk/gtktreedatalist.c
+++ b/gtk/gtktreedatalist.c
@@ -314,9 +314,9 @@ gtk_tree_data_list_compare_func (GtkTreeModel *model,
switch (G_TYPE_FUNDAMENTAL (type))
{
case G_TYPE_BOOLEAN:
- if (g_value_get_int (&a_value) < g_value_get_int (&b_value))
+ if (g_value_get_boolean (&a_value) < g_value_get_boolean (&b_value))
retval = -1;
- else if (g_value_get_int (&a_value) == g_value_get_int (&b_value))
+ else if (g_value_get_boolean (&a_value) == g_value_get_boolean (&b_value))
retval = 0;
else
retval = 1;