[gnome-photos/wip/rishi/edit-mode: 16/32] utils: Add an extension point for PhotosTool sub-classes



commit d55ad8fe60b87e060a0fe78d3f5d7dfbab2120b2
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jun 2 20:49:13 2015 +0200

    utils: Add an extension point for PhotosTool 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 8718a92..78e1ef9 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -45,6 +45,7 @@
 #include "photos-operation-insta-filter.h"
 #include "photos-query.h"
 #include "photos-source.h"
+#include "photos-tool.h"
 #include "photos-tracker-collections-controller.h"
 #include "photos-tracker-controller.h"
 #include "photos-tracker-favorites-controller.h"
@@ -547,6 +548,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_TOOL_EXTENSION_POINT_NAME);
+      g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_TOOL);
+
       extension_point = g_io_extension_point_register (PHOTOS_TRACKER_CONTROLLER_EXTENSION_POINT_NAME);
       g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_TRACKER_CONTROLLER);
 
diff --git a/src/photos-utils.h b/src/photos-utils.h
index 7371864..f124ae2 100644
--- a/src/photos-utils.h
+++ b/src/photos-utils.h
@@ -44,6 +44,7 @@ G_BEGIN_DECLS
 #define PHOTOS_FLASH_ON (photos_utils_flash_on_quark ())
 
 #define PHOTOS_BASE_ITEM_EXTENSION_POINT_NAME "photos-base-item"
+#define PHOTOS_TOOL_EXTENSION_POINT_NAME "photos-tool"
 #define PHOTOS_TRACKER_CONTROLLER_EXTENSION_POINT_NAME "photos-tracker-controller"
 
 #define PHOTOS_COLLECTION_SCREENSHOT \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]