summaryrefslogtreecommitdiff
path: root/gtk/gtktreesortable.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@src.gnome.org>2001-10-15 18:06:50 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-10-15 18:06:50 +0000
commitba938d8ab5eb67d497ba501d7310638a68b9d4fe (patch)
treeab95d634edd42b95d339ff01cb335cd7e4d44af8 /gtk/gtktreesortable.c
parentea28741c4615a80be52be19eaacf3bc507e3d2b6 (diff)
downloadgtk+-ba938d8ab5eb67d497ba501d7310638a68b9d4fe.tar.gz
Minor documentation fix
Diffstat (limited to 'gtk/gtktreesortable.c')
-rw-r--r--gtk/gtktreesortable.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtktreesortable.c b/gtk/gtktreesortable.c
index efc35e0887..1bf89a95a1 100644
--- a/gtk/gtktreesortable.c
+++ b/gtk/gtktreesortable.c
@@ -119,8 +119,9 @@ gtk_tree_sortable_get_sort_column_id (GtkTreeSortable *sortable,
*
* Sets the current sort column to be @sort_column_id. The @sortable will
* resort itself to reflect this change, after emitting a
- * GtkTreeSortable::sort_column_changed signal. If @sort_column_id is -1, then
- * the default sort function will be used, if it is set.
+ * GtkTreeSortable::sort_column_changed signal. If @sort_column_id is
+ * %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, then the default sort function
+ * will be used, if it is set.
**/
void
gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable,
@@ -137,7 +138,6 @@ gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable,
g_return_if_fail (iface->set_sort_column_id != NULL);
(* iface->set_sort_column_id) (sortable, sort_column_id, order);
-
}
/**
@@ -167,7 +167,8 @@ gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable,
g_return_if_fail (iface != NULL);
g_return_if_fail (iface->set_sort_func != NULL);
-
+ g_return_if_fail (sort_column_id > 0);
+
(* iface->set_sort_func) (sortable, sort_column_id, sort_func, user_data, destroy);
}
@@ -179,8 +180,10 @@ gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable,
* @destroy: Destroy notifier of @user_data, or %NULL
*
* Sets the default comparison function used when sorting to be @sort_func. If
- * the current sort column id of @sortable is the same as @sort_column_id, then
- * the model will sort.
+ * the current sort column id of @sortable is
+ * %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, then the model will sort. If
+ * @sort_func is %NULL, then the default sort_func, and there will be no default
+ * sort_func. In this case, the model is unsorted.
**/
void
gtk_tree_sortable_set_default_sort_func (GtkTreeSortable *sortable,