Trivial doc fixes.

2005-07-25  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreemodelsort.c: Trivial doc fixes.

	* gtk/gtktreesortable.c: Talk about comparison functions, not
	sort functions in some places.  (#311398, Fabrice Bauzac)



2005-07-25  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtktreemodelsort.sgml: Note that the sorting
	function is not guaranteed to be stable.  (#311398,
	Fabrice Bauzac)
This commit is contained in:
Matthias Clasen
2005-07-25 13:55:31 +00:00
committed by Matthias Clasen
parent 258f25700d
commit e0f77a1f76
7 changed files with 47 additions and 21 deletions

View File

@ -1,5 +1,10 @@
2005-07-25 Matthias Clasen <mclasen@redhat.com> 2005-07-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelsort.c: Trivial doc fixes.
* gtk/gtktreesortable.c: Talk about comparison functions, not
sort functions in some places. (#311398, Fabrice Bauzac)
* gtk/gtk.symbols: * gtk/gtk.symbols:
* gtk/gtkobject.[hc]: * gtk/gtkobject.[hc]:
* gtk/gtkfilechooserdialog.[hc] * gtk/gtkfilechooserdialog.[hc]

View File

@ -1,5 +1,10 @@
2005-07-25 Matthias Clasen <mclasen@redhat.com> 2005-07-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelsort.c: Trivial doc fixes.
* gtk/gtktreesortable.c: Talk about comparison functions, not
sort functions in some places. (#311398, Fabrice Bauzac)
* gtk/gtk.symbols: * gtk/gtk.symbols:
* gtk/gtkobject.[hc]: * gtk/gtkobject.[hc]:
* gtk/gtkfilechooserdialog.[hc] * gtk/gtkfilechooserdialog.[hc]

View File

@ -1,5 +1,10 @@
2005-07-25 Matthias Clasen <mclasen@redhat.com> 2005-07-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelsort.c: Trivial doc fixes.
* gtk/gtktreesortable.c: Talk about comparison functions, not
sort functions in some places. (#311398, Fabrice Bauzac)
* gtk/gtk.symbols: * gtk/gtk.symbols:
* gtk/gtkobject.[hc]: * gtk/gtkobject.[hc]:
* gtk/gtkfilechooserdialog.[hc] * gtk/gtkfilechooserdialog.[hc]

View File

@ -1,3 +1,9 @@
2005-07-25 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtktreemodelsort.sgml: Note that the sorting
function is not guaranteed to be stable. (#311398,
Fabrice Bauzac)
2005-07-22 Matthias Clasen <mclasen@redhat.com> 2005-07-22 Matthias Clasen <mclasen@redhat.com>
* === Released 2.7.4 === * === Released 2.7.4 ===

View File

@ -11,7 +11,8 @@ interface. It does not hold any data itself, but rather is created with
a child model and proxies its data. It has identical column types to a child model and proxies its data. It has identical column types to
this child model, and the changes in the child are propagated. The this child model, and the changes in the child are propagated. The
primary purpose of this model is to provide a way to sort a different primary purpose of this model is to provide a way to sort a different
model without modifying it. model without modifying it. Note that the sort function used by
#GtkTreeModelSort is not guaranteed to be stable.
</para> </para>
<para> <para>
The use of this is best demonstrated through an example. In the The use of this is best demonstrated through an example. In the

View File

@ -375,7 +375,7 @@ gtk_tree_model_sort_drag_source_init (GtkTreeDragSourceIface *iface)
* gtk_tree_model_sort_new_with_model: * gtk_tree_model_sort_new_with_model:
* @child_model: A #GtkTreeModel * @child_model: A #GtkTreeModel
* *
* Creates a new #GtkTreeModel, with @child_model as the child_model. * Creates a new #GtkTreeModel, with @child_model as the child model.
* *
* Return value: A new #GtkTreeModel. * Return value: A new #GtkTreeModel.
*/ */
@ -1941,11 +1941,12 @@ gtk_tree_model_sort_elt_get_path (SortLevel *level,
/** /**
* gtk_tree_model_sort_set_model: * gtk_tree_model_sort_set_model:
* @tree_model_sort: The #GtkTreeModelSort. * @tree_model_sort: The #GtkTreeModelSort.
* @child_model: A #GtkTreeModel, or NULL. * @child_model: A #GtkTreeModel, or %NULL.
* *
* Sets the model of @tree_model_sort to be @model. If @model is NULL, then the * Sets the model of @tree_model_sort to be @model. If @model is %NULL,
* old model is unset. The sort function is unset as a result of this call. * then the old model is unset. The sort function is unset as a result
* The model will be in an unsorted state until a sort function is set. * of this call. The model will be in an unsorted state until a sort
* function is set.
**/ **/
static void static void
gtk_tree_model_sort_set_model (GtkTreeModelSort *tree_model_sort, gtk_tree_model_sort_set_model (GtkTreeModelSort *tree_model_sort,
@ -2107,8 +2108,8 @@ gtk_real_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_mode
* *
* Converts @child_path to a path relative to @tree_model_sort. That is, * Converts @child_path to a path relative to @tree_model_sort. That is,
* @child_path points to a path in the child model. The returned path will * @child_path points to a path in the child model. The returned path will
* point to the same row in the sorted model. If @child_path isn't a valid path * point to the same row in the sorted model. If @child_path isn't a valid
* on the child model, then %NULL is returned. * path on the child model, then %NULL is returned.
* *
* Return value: A newly allocated #GtkTreePath, or %NULL * Return value: A newly allocated #GtkTreePath, or %NULL
**/ **/
@ -2162,10 +2163,11 @@ gtk_tree_model_sort_convert_child_iter_to_iter (GtkTreeModelSort *tree_model_sor
* @tree_model_sort: A #GtkTreeModelSort * @tree_model_sort: A #GtkTreeModelSort
* @sorted_path: A #GtkTreePath to convert * @sorted_path: A #GtkTreePath to convert
* *
* Converts @sorted_path to a path on the child model of @tree_model_sort. That * Converts @sorted_path to a path on the child model of @tree_model_sort.
* is, @sorted_path points to a location in @tree_model_sort. The returned path * That is, @sorted_path points to a location in @tree_model_sort. The
* will point to the same location in the model not being sorted. If @sorted_path * returned path will point to the same location in the model not being
* does not point to a location in the child model, %NULL is returned. * sorted. If @sorted_path does not point to a location in the child model,
* %NULL is returned.
* *
* Return value: A newly allocated #GtkTreePath, or %NULL * Return value: A newly allocated #GtkTreePath, or %NULL
**/ **/
@ -2497,8 +2499,9 @@ gtk_tree_model_sort_iter_is_valid_helper (GtkTreeIter *iter,
* @tree_model_sort: A #GtkTreeModelSort. * @tree_model_sort: A #GtkTreeModelSort.
* @iter: A #GtkTreeIter. * @iter: A #GtkTreeIter.
* *
* WARNING: This function is slow. Only use it for debugging and/or testing * <warning><para>
* purposes. * This function is slow. Only use it for debugging and/or testing purposes.
* </para></warning>
* *
* Checks if the given iter is a valid iter for this #GtkTreeModelSort. * Checks if the given iter is a valid iter for this #GtkTreeModelSort.
* *

View File

@ -151,8 +151,8 @@ gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable,
* gtk_tree_sortable_set_sort_func: * gtk_tree_sortable_set_sort_func:
* @sortable: A #GtkTreeSortable * @sortable: A #GtkTreeSortable
* @sort_column_id: the sort column id to set the function for * @sort_column_id: the sort column id to set the function for
* @sort_func: The sorting function * @sort_func: The comparison function
* @user_data: User data to pass to the sort func, or %NULL * @user_data: User data to pass to @sort_func, or %NULL
* @destroy: Destroy notifier of @user_data, or %NULL * @destroy: Destroy notifier of @user_data, or %NULL
* *
* Sets the comparison function used when sorting to be @sort_func. If the * Sets the comparison function used when sorting to be @sort_func. If the
@ -182,13 +182,14 @@ gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable,
/** /**
* gtk_tree_sortable_set_default_sort_func: * gtk_tree_sortable_set_default_sort_func:
* @sortable: A #GtkTreeSortable * @sortable: A #GtkTreeSortable
* @sort_func: The sorting function * @sort_func: The comparison function
* @user_data: User data to pass to the sort func, or %NULL * @user_data: User data to pass to @sort_func, or %NULL
* @destroy: Destroy notifier of @user_data, or %NULL * @destroy: Destroy notifier of @user_data, or %NULL
* *
* Sets the default comparison function used when sorting to be @sort_func. If * Sets the default comparison function used when sorting to be @sort_func.
* the current sort column id of @sortable is * If the current sort column id of @sortable is
* %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, then the model will sort using this function. * %GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, then the model will sort using
* this function.
* *
* If @sort_func is %NULL, then there will be no default comparison function. * If @sort_func is %NULL, then there will be no default comparison function.
* This means that once the model has been sorted, it can't go back to the * This means that once the model has been sorted, it can't go back to the