summaryrefslogtreecommitdiff
path: root/gcr/gcr-collection-model.h
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-11-09 17:19:45 +0100
committerStef Walter <stefw@collabora.co.uk>2011-11-09 17:19:45 +0100
commitec6e65cf09804d91bf10b15e75b02056c02f59a0 (patch)
tree46354ef1cf6a6e0e2dd9d809ffccd82ccfe1b11e /gcr/gcr-collection-model.h
parent3bffaf39e4e32daa1942e32f68c10ff35d509bd7 (diff)
downloadgcr-ec6e65cf09804d91bf10b15e75b02056c02f59a0.tar.gz
gcr: Allow changing the collection on a GcrCollectionModel
* Make the collection property writable any time * Add gcr_collection_model_set_collection() function * Try to be smart about adding/removing objects that are in the intersection of the old/new collections
Diffstat (limited to 'gcr/gcr-collection-model.h')
-rw-r--r--gcr/gcr-collection-model.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcr/gcr-collection-model.h b/gcr/gcr-collection-model.h
index 73980ac..55c9460 100644
--- a/gcr/gcr-collection-model.h
+++ b/gcr/gcr-collection-model.h
@@ -69,6 +69,9 @@ guint gcr_collection_model_set_columns (GcrCollectionMod
GcrCollection * gcr_collection_model_get_collection (GcrCollectionModel *self);
+void gcr_collection_model_set_collection (GcrCollectionModel *self,
+ GcrCollection *collection);
+
GObject* gcr_collection_model_object_for_iter (GcrCollectionModel *self,
const GtkTreeIter *iter);