From c8df83a2fee148d871b36ca5ac742dc566c64612 Mon Sep 17 00:00:00 2001 From: Stefan Jeske Date: Wed, 5 Aug 1998 20:02:32 +0000 Subject: new enum GtkSortType. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wed Aug 5 21:12:37 1998 Stefan Jeske * gtk/gtkenums.h: new enum GtkSortType. * gtk/gtkclist.h: * gtk/gtkclist.c: Added sorting capabilities to GtkCList. New APIs : gtk_clist_set_compare_func, gtk_clist_set_sort_column, gtk_clist_set_sort_type, gtk_clist_sort, gtk_clist_set_auto_sort. New internal functions : default_compare, merge, mergesort. (gtk_clist_append): This is just a wrapper for gtk_clist_insert now. (gtk_clist_insert): Modified to handle gtk_clist_append and the auto sort flag. Changed the return value from void to gint to return the row number where the element was actually inserted. (gtk_clist_swap_rows): Return immediately if auto sort flag is set. * gtk/gtkctree.h: * gtk/gtkctree.c: Removed the auto_sort flag, replaced ctree->node_compare with clist->compare all over the place, modified default_compare to match clist's needs. Removed API´s : gtk_ctree_set_auto_sort, gtk_ctree_set_compare_func. Removed GtkCTreeCompareFunc typedef. * gtk/testgtk.c: Modified clist/ctree samples to demonstrate sorting. The lists can be sorted by a column by clicking the corresponding title button. --- ChangeLog | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index b47db2be7..2fd2cdc64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,33 @@ +Wed Aug 5 21:12:37 1998 Stefan Jeske + + * gtk/gtkenums.h: new enum GtkSortType. + + * gtk/gtkclist.h: + * gtk/gtkclist.c: + Added sorting capabilities to GtkCList. New APIs : + gtk_clist_set_compare_func, gtk_clist_set_sort_column, + gtk_clist_set_sort_type, gtk_clist_sort, gtk_clist_set_auto_sort. + New internal functions : default_compare, merge, mergesort. + + (gtk_clist_append): This is just a wrapper for gtk_clist_insert now. + + (gtk_clist_insert): Modified to handle gtk_clist_append and the + auto sort flag. Changed the return value from void to gint to + return the row number where the element was actually inserted. + + (gtk_clist_swap_rows): Return immediately if auto sort flag is set. + + * gtk/gtkctree.h: + * gtk/gtkctree.c: + Removed the auto_sort flag, replaced ctree->node_compare with + clist->compare all over the place, modified default_compare to + match clist's needs. Removed API´s : gtk_ctree_set_auto_sort, + gtk_ctree_set_compare_func. Removed GtkCTreeCompareFunc typedef. + + * gtk/testgtk.c: Modified clist/ctree samples to demonstrate + sorting. The lists can be sorted by a column by clicking the + corresponding title button. + Tue Aug 4 22:02:49 PDT 1998 Shawn T. Amundson * Released GTK+ 1.1.1 -- cgit v1.2.1