summaryrefslogtreecommitdiff
path: root/gtk/gtkliststore.c
diff options
context:
space:
mode:
authorKristian Rietveld <kristian@planet.nl>2001-08-23 18:33:37 +0000
committerKristian Rietveld <kristian@src.gnome.org>2001-08-23 18:33:37 +0000
commit7cfc56dbd31e04220323144f5972f8e676604dc6 (patch)
tree76e0427ea83a8d63f5d41b18ff9a636fbc83cf28 /gtk/gtkliststore.c
parent0b5311f5e984412e0029d069157473600d4ef58d (diff)
downloadgtk+-7cfc56dbd31e04220323144f5972f8e676604dc6.tar.gz
use GtkSortType instead of GtkTreeSortOrder. (#59173).
Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch], gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch], gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder. (#59173).
Diffstat (limited to 'gtk/gtkliststore.c')
-rw-r--r--gtk/gtkliststore.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c
index 1fbed24bf2..8fba27a26f 100644
--- a/gtk/gtkliststore.c
+++ b/gtk/gtkliststore.c
@@ -95,10 +95,10 @@ static void gtk_list_store_sort_iter_changed (GtkListStore *list_
gint column);
static gboolean gtk_list_store_get_sort_column_id (GtkTreeSortable *sortable,
gint *sort_column_id,
- GtkTreeSortOrder *order);
+ GtkSortType *order);
static void gtk_list_store_set_sort_column_id (GtkTreeSortable *sortable,
gint sort_column_id,
- GtkTreeSortOrder order);
+ GtkSortType order);
static void gtk_list_store_set_sort_func (GtkTreeSortable *sortable,
gint sort_column_id,
GtkTreeIterCompareFunc func,
@@ -1391,7 +1391,7 @@ gtk_list_store_compare_func (gconstpointer a,
&iter_a, &iter_b,
header->data);
- if (list_store->order == GTK_TREE_SORT_DESCENDING)
+ if (list_store->order == GTK_SORT_DESCENDING)
{
if (retval > 0)
retval = -1;
@@ -1530,7 +1530,7 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
}
- if (list_store->order == GTK_TREE_SORT_DESCENDING)
+ if (list_store->order == GTK_SORT_DESCENDING)
{
if (cmp_a < 0)
cmp_a = 1;
@@ -1567,7 +1567,7 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
list = G_SLIST (list_store->root);
new_location = 0;
tmp_iter.user_data = list;
- if (list_store->order == GTK_TREE_SORT_DESCENDING)
+ if (list_store->order == GTK_SORT_DESCENDING)
cmp_a = (* header->func) (GTK_TREE_MODEL (list_store),
&tmp_iter, iter, header->data);
else
@@ -1580,7 +1580,7 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
list = list->next;
new_location++;
tmp_iter.user_data = list;
- if (list_store->order == GTK_TREE_SORT_DESCENDING)
+ if (list_store->order == GTK_SORT_DESCENDING)
cmp_a = (* header->func) (GTK_TREE_MODEL (list_store),
&tmp_iter, iter, header->data);
else
@@ -1645,7 +1645,7 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
static gboolean
gtk_list_store_get_sort_column_id (GtkTreeSortable *sortable,
gint *sort_column_id,
- GtkTreeSortOrder *order)
+ GtkSortType *order)
{
GtkListStore *list_store = (GtkListStore *) sortable;
@@ -1664,7 +1664,7 @@ gtk_list_store_get_sort_column_id (GtkTreeSortable *sortable,
static void
gtk_list_store_set_sort_column_id (GtkTreeSortable *sortable,
gint sort_column_id,
- GtkTreeSortOrder order)
+ GtkSortType order)
{
GtkListStore *list_store = (GtkListStore *) sortable;
GList *list;