[gnome-photos/wip/rishi/item-manager: 10/12] base-manager: Add photos_base_manager_new
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/item-manager: 10/12] base-manager: Add photos_base_manager_new
- Date: Fri, 19 Aug 2016 09:13:51 +0000 (UTC)
commit c0c4d52f2dbb5ea354cdd5af13272ae043b2924a
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.
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 fdfc6fc..1b27a63 100644
--- a/src/photos-base-manager.c
+++ b/src/photos-base-manager.c
@@ -303,6 +303,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 030d24d..7f058c8 100644
--- a/src/photos-base-manager.h
+++ b/src/photos-base-manager.h
@@ -82,6 +82,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]