[gnome-photos/wip/rishi/declare-final: 3/3] operation-insta-hefe-curve: Use G_DECLARE_FINAL_TYPE



commit 2f83b23dffb200bfaf83ff96b9c9905c1da71c18
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 |   20 ++++++--------------
 2 files changed, 6 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..2608f30 100644
--- a/src/photos-operation-insta-hefe-curve.h
+++ b/src/photos-operation-insta-hefe-curve.h
@@ -21,24 +21,16 @@
 #ifndef PHOTOS_OPERATION_INSTA_HEFE_CURVE_H
 #define PHOTOS_OPERATION_INSTA_HEFE_CURVE_H
 
-#include <glib-object.h>
+#include <gegl-plugin.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]