Commit 5b50d251 authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Jonathan Blandford

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.
parent fb2e12e8
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.
Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
......
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.
Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
......
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.
Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
......
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.
Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
......
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.
Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment