new function. (#160879, Stefan Kost).

2005-07-13  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
	function. (#160879, Stefan Kost).
This commit is contained in:
Kristian Rietveld 2005-07-13 21:27:03 +00:00 committed by Kristian Rietveld
parent 7a02c5b508
commit ae61f443f3
5 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-07-13 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
function. (#160879, Stefan Kost).
2005-07-13 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box

View File

@ -1,3 +1,8 @@
2005-07-13 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
function. (#160879, Stefan Kost).
2005-07-13 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box

View File

@ -1,3 +1,8 @@
2005-07-13 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.[ch] (gtk_tree_row_reference_get_model): new
function. (#160879, Stefan Kost).
2005-07-13 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_bin_expose): paint a flat box

View File

@ -1942,6 +1942,25 @@ gtk_tree_row_reference_get_path (GtkTreeRowReference *reference)
return gtk_tree_path_copy (reference->path);
}
/**
* gtk_tree_row_reference_get_model:
* @reference: A #GtkTreeRowReference
*
* Returns the model which @reference is monitoring in order to appropriately
* the path.
*
* Return value: The model, or %NULL.
*
* Since: 2.8
*/
GtkTreeModel *
gtk_tree_row_reference_get_model (GtkTreeRowReference *reference)
{
g_return_val_if_fail (reference != NULL, NULL);
return reference->model;
}
/**
* gtk_tree_row_reference_valid:
* @reference: A #GtkTreeRowReference, or NULL

View File

@ -161,6 +161,7 @@ GtkTreeRowReference *gtk_tree_row_reference_new_proxy (GObject *prox
GtkTreeModel *model,
GtkTreePath *path);
GtkTreePath *gtk_tree_row_reference_get_path (GtkTreeRowReference *reference);
GtkTreeModel *gtk_tree_row_reference_get_model (GtkTreeRowReference *reference);
gboolean gtk_tree_row_reference_valid (GtkTreeRowReference *reference);
GtkTreeRowReference *gtk_tree_row_reference_copy (GtkTreeRowReference *reference);
void gtk_tree_row_reference_free (GtkTreeRowReference *reference);