[gnome-photos] operation-insta-hefe-curve: Use G_DECLARE_FINAL_TYPE



commit 4281d990e35f92cc8f480d2f4d3d3a0bcad10232
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Mar 15 10:38:49 2017 +0100

    operation-insta-hefe-curve: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-operation-insta-hefe-curve.c |    6 ------
 src/photos-operation-insta-hefe-curve.h |   22 ++++++++--------------
 2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-insta-hefe-curve.c b/src/photos-operation-insta-hefe-curve.c
index b15a038..13657f7 100644
--- a/src/photos-operation-insta-hefe-curve.c
+++ b/src/photos-operation-insta-hefe-curve.c
@@ -23,7 +23,6 @@
 
 #include <babl/babl.h>
 #include <gegl.h>
-#include <gegl-plugin.h>
 
 #include "photos-operation-insta-hefe-curve.h"
 
@@ -33,11 +32,6 @@ struct _PhotosOperationInstaHefeCurve
   GeglOperationPointFilter parent_instance;
 };
 
-struct _PhotosOperationInstaHefeCurveClass
-{
-  GeglOperationPointFilterClass parent_class;
-};
-
 
 G_DEFINE_TYPE (PhotosOperationInstaHefeCurve, photos_operation_insta_hefe_curve, 
GEGL_TYPE_OPERATION_POINT_FILTER);
 
diff --git a/src/photos-operation-insta-hefe-curve.h b/src/photos-operation-insta-hefe-curve.h
index 0c1bad9..2708a9a 100644
--- a/src/photos-operation-insta-hefe-curve.h
+++ b/src/photos-operation-insta-hefe-curve.h
@@ -21,24 +21,18 @@
 #ifndef PHOTOS_OPERATION_INSTA_HEFE_CURVE_H
 #define PHOTOS_OPERATION_INSTA_HEFE_CURVE_H
 
-#include <glib-object.h>
+#include <gegl-plugin.h>
+
+#include "photos-gegl.h"
 
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_OPERATION_INSTA_HEFE_CURVE (photos_operation_insta_hefe_curve_get_type ())
-
-#define PHOTOS_OPERATION_INSTA_HEFE_CURVE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_OPERATION_INSTA_HEFE_CURVE, PhotosOperationInstaHefeCurve))
-
-#define PHOTOS_IS_OPERATION_INSTA_HEFE_CURVE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_OPERATION_INSTA_HEFE_CURVE))
-
-typedef struct _PhotosOperationInstaHefeCurve      PhotosOperationInstaHefeCurve;
-typedef struct _PhotosOperationInstaHefeCurveClass PhotosOperationInstaHefeCurveClass;
-
-GType            photos_operation_insta_hefe_curve_get_type       (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationInstaHefeCurve,
+                      photos_operation_insta_hefe_curve,
+                      PHOTOS,
+                      OPERATION_INSTA_HEFE_CURVE,
+                      GeglOperationPointFilter);
 
 G_END_DECLS
 


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