[gnome-photos] base-manager: Add photos_base_manager_new
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-manager: Add photos_base_manager_new
- Date: Sat, 20 Aug 2016 17:32:10 +0000 (UTC)
commit a30053cafa1c8e19abf96d5e2ff55ec0bc4c7081
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jul 25 10:39:18 2016 +0200
base-manager: Add photos_base_manager_new
This is required to split PhotosItemManager to have a separate child
manager for each mode.
https://bugzilla.gnome.org/show_bug.cgi?id=770157
src/photos-base-manager.c | 7 +++++++
src/photos-base-manager.h | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-manager.c b/src/photos-base-manager.c
index c0f4e22..dd71022 100644
--- a/src/photos-base-manager.c
+++ b/src/photos-base-manager.c
@@ -314,6 +314,13 @@ photos_base_manager_class_init (PhotosBaseManagerClass *class)
}
+PhotosBaseManager *
+photos_base_manager_new (void)
+{
+ return g_object_new (PHOTOS_TYPE_BASE_MANAGER, NULL);
+}
+
+
void
photos_base_manager_add_object (PhotosBaseManager *self, GObject *object)
{
diff --git a/src/photos-base-manager.h b/src/photos-base-manager.h
index e1b8bd2..9807ef4 100644
--- a/src/photos-base-manager.h
+++ b/src/photos-base-manager.h
@@ -83,6 +83,8 @@ struct _PhotosBaseManagerClass
GType photos_base_manager_get_type (void) G_GNUC_CONST;
+PhotosBaseManager *photos_base_manager_new (void);
+
void photos_base_manager_add_object (PhotosBaseManager *self, GObject *object);
void photos_base_manager_clear (PhotosBaseManager *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]