[gnome-photos/wip/rishi/item-manager: 3/7] 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: 3/7] base-manager: Add photos_base_manager_new
- Date: Mon, 15 Aug 2016 10:28:02 +0000 (UTC)
commit aaebb8cb15b895aed8ebd3bf13c98979b993b7a8
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 5a20883..8f66b07 100644
--- a/src/photos-base-manager.c
+++ b/src/photos-base-manager.c
@@ -309,6 +309,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]