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



commit 5ecbac8e0990e7ed1ddc2bab6eb9e46ced1f3988
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Mar 21 09:22:07 2017 +0100

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

 src/photos-operation-insta-hefe-vignette.c |    6 ------
 src/photos-operation-insta-hefe-vignette.h |   22 ++++++++--------------
 2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-insta-hefe-vignette.c b/src/photos-operation-insta-hefe-vignette.c
index b765ca1..63baf8b 100644
--- a/src/photos-operation-insta-hefe-vignette.c
+++ b/src/photos-operation-insta-hefe-vignette.c
@@ -24,7 +24,6 @@
 #include <babl/babl.h>
 #include <gdk-pixbuf/gdk-pixbuf.h>
 #include <gegl.h>
-#include <gegl-plugin.h>
 
 #include "photos-operation-insta-hefe-vignette.h"
 
@@ -40,11 +39,6 @@ struct _PhotosOperationInstaHefeVignette
   gdouble y;
 };
 
-struct _PhotosOperationInstaHefeVignetteClass
-{
-  GeglOperationPointRenderClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-operation-insta-hefe-vignette.h b/src/photos-operation-insta-hefe-vignette.h
index dac2045..7000e96 100644
--- a/src/photos-operation-insta-hefe-vignette.h
+++ b/src/photos-operation-insta-hefe-vignette.h
@@ -21,24 +21,18 @@
 #ifndef PHOTOS_OPERATION_INSTA_HEFE_VIGNETTE_H
 #define PHOTOS_OPERATION_INSTA_HEFE_VIGNETTE_H
 
-#include <glib-object.h>
+#include <gegl-plugin.h>
+
+#include "photos-gegl.h"
 
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_OPERATION_INSTA_HEFE_VIGNETTE (photos_operation_insta_hefe_vignette_get_type ())
-
-#define PHOTOS_OPERATION_INSTA_HEFE_VIGNETTE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_OPERATION_INSTA_HEFE_VIGNETTE, PhotosOperationInstaHefeVignette))
-
-#define PHOTOS_IS_OPERATION_INSTA_HEFE_VIGNETTE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_OPERATION_INSTA_HEFE_VIGNETTE))
-
-typedef struct _PhotosOperationInstaHefeVignette      PhotosOperationInstaHefeVignette;
-typedef struct _PhotosOperationInstaHefeVignetteClass PhotosOperationInstaHefeVignetteClass;
-
-GType            photos_operation_insta_hefe_vignette_get_type       (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationInstaHefeVignette,
+                      photos_operation_insta_hefe_vignette,
+                      PHOTOS,
+                      OPERATION_INSTA_HEFE_VIGNETTE,
+                      GeglOperationPointRender);
 
 G_END_DECLS
 


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