[gnome-photos/wip/rishi/share-point-1: 3/4] utils: Add an extension point for PhotosSharePoint sub-classes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/share-point-1: 3/4] utils: Add an extension point for PhotosSharePoint sub-classes
- Date: Fri, 1 Jul 2016 19:13:44 +0000 (UTC)
commit de4aa41709d333fee9122f3d5a41fc6b10524e45
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jul 1 21:11:33 2016 +0200
utils: Add an extension point for PhotosSharePoint sub-classes
src/photos-utils.c | 4 ++++
src/photos-utils.h | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-utils.c b/src/photos-utils.c
index 64827b7..7f30ec4 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -51,6 +51,7 @@
#include "photos-operation-png-guess-sizes.h"
#include "photos-operation-saturation.h"
#include "photos-query.h"
+#include "photos-share-point.h"
#include "photos-source.h"
#include "photos-tool.h"
#include "photos-tool-colors.h"
@@ -856,6 +857,9 @@ photos_utils_ensure_extension_points (void)
extension_point = g_io_extension_point_register (PHOTOS_BASE_ITEM_EXTENSION_POINT_NAME);
g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_BASE_ITEM);
+ extension_point = g_io_extension_point_register (PHOTOS_SHARE_POINT_EXTENSION_POINT_NAME);
+ g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_SHARE_POINT);
+
extension_point = g_io_extension_point_register (PHOTOS_TOOL_EXTENSION_POINT_NAME);
g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_TOOL);
diff --git a/src/photos-utils.h b/src/photos-utils.h
index b788e4d..c7e4830 100644
--- a/src/photos-utils.h
+++ b/src/photos-utils.h
@@ -50,6 +50,7 @@ G_BEGIN_DECLS
#define PHOTOS_ORIENTATION_TOP (photos_utils_orientation_top_quark ())
#define PHOTOS_BASE_ITEM_EXTENSION_POINT_NAME "photos-base-item"
+#define PHOTOS_SHARE_POINT_EXTENSION_POINT_NAME "photos-share-point"
#define PHOTOS_TOOL_EXTENSION_POINT_NAME "photos-tool"
#define PHOTOS_TRACKER_CONTROLLER_EXTENSION_POINT_NAME "photos-tracker-controller"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]