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



commit 4b39deedd6ed871d0406b5089e6a5a9f8d01460b
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 65aa4d5..cb6f7bc 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"
@@ -545,6 +546,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]