* A way to get the collection that collection model is based on.
gcr_collection_model_new
gcr_collection_model_new_full
gcr_collection_model_set_columns
+gcr_collection_model_get_collection
gcr_collection_model_iter_for_object
gcr_collection_model_object_for_iter
gcr_collection_model_is_selected
}
/**
+ * gcr_collection_model_get_collection:
+ * @self: a collection model
+ *
+ * Get the collection which this model represents
+ *
+ * Returns: (transfer none): the collection, owned by the model
+ */
+GcrCollection *
+gcr_collection_model_get_collection (GcrCollectionModel *self)
+{
+ g_return_val_if_fail (GCR_IS_COLLECTION_MODEL (self), NULL);
+ return self->pv->collection;
+}
+
+/**
* gcr_collection_model_object_for_iter:
* @self: The model
* @iter: The row
void gcr_collection_model_set_columns (GcrCollectionModel *self,
const GcrColumn *columns);
+GcrCollection * gcr_collection_model_get_collection (GcrCollectionModel *self);
+
GObject* gcr_collection_model_object_for_iter (GcrCollectionModel *self,
const GtkTreeIter *iter);