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



commit 2d15b32f751a0d459ca91d3883dc0cc48fa8f1cb
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Mar 21 09:22:23 2017 +0100

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

 src/photos-operation-insta-hefe.c |    6 ------
 src/photos-operation-insta-hefe.h |   22 ++++++++--------------
 2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-insta-hefe.c b/src/photos-operation-insta-hefe.c
index 5f423c0..18d33e5 100644
--- a/src/photos-operation-insta-hefe.c
+++ b/src/photos-operation-insta-hefe.c
@@ -23,7 +23,6 @@
 
 #include <babl/babl.h>
 #include <gegl.h>
-#include <gegl-plugin.h>
 
 #include "photos-operation-insta-hefe.h"
 
@@ -37,11 +36,6 @@ struct _PhotosOperationInstaHefe
   GeglRectangle bbox;
 };
 
-struct _PhotosOperationInstaHefeClass
-{
-  GeglOperationMetaClass parent_class;
-};
-
 
 G_DEFINE_TYPE (PhotosOperationInstaHefe, photos_operation_insta_hefe, GEGL_TYPE_OPERATION_META);
 
diff --git a/src/photos-operation-insta-hefe.h b/src/photos-operation-insta-hefe.h
index 6f12903..a7d6d00 100644
--- a/src/photos-operation-insta-hefe.h
+++ b/src/photos-operation-insta-hefe.h
@@ -21,24 +21,18 @@
 #ifndef PHOTOS_OPERATION_INSTA_HEFE_H
 #define PHOTOS_OPERATION_INSTA_HEFE_H
 
-#include <glib-object.h>
+#include <gegl-plugin.h>
+
+#include "photos-gegl.h"
 
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_OPERATION_INSTA_HEFE (photos_operation_insta_hefe_get_type ())
-
-#define PHOTOS_OPERATION_INSTA_HEFE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_OPERATION_INSTA_HEFE, PhotosOperationInstaHefe))
-
-#define PHOTOS_IS_OPERATION_INSTA_HEFE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_OPERATION_INSTA_HEFE))
-
-typedef struct _PhotosOperationInstaHefe      PhotosOperationInstaHefe;
-typedef struct _PhotosOperationInstaHefeClass PhotosOperationInstaHefeClass;
-
-GType            photos_operation_insta_hefe_get_type       (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationInstaHefe,
+                      photos_operation_insta_hefe,
+                      PHOTOS,
+                      OPERATION_INSTA_HEFE,
+                      GeglOperationMeta);
 
 G_END_DECLS
 


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