[gnome-photos/wip/rishi/item-manager: 9/11] base-manager: Add photos_base_manager_new



commit a152ba8b4abcfcc26aaaae2cd3a25d0c2c76d5b3
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 5987489..fce017f 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]