[gnome-photos] operation-insta-curve: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] operation-insta-curve: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 21 Mar 2017 09:23:23 +0000 (UTC)
commit 7d4ad075c8f6b204f99afda4023e4ecdb38ec2c5
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 15 10:33:27 2017 +0100
operation-insta-curve: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-operation-insta-curve.c | 6 ------
src/photos-operation-insta-curve.h | 22 ++++++++--------------
2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-insta-curve.c b/src/photos-operation-insta-curve.c
index 643131c..131b80c 100644
--- a/src/photos-operation-insta-curve.c
+++ b/src/photos-operation-insta-curve.c
@@ -25,7 +25,6 @@
#include <babl/babl.h>
#include <gegl.h>
-#include <gegl-plugin.h>
#include "photos-enums.h"
#include "photos-operation-insta-common.h"
@@ -41,11 +40,6 @@ struct _PhotosOperationInstaCurve
PhotosOperationProcessFunc process;
};
-struct _PhotosOperationInstaCurveClass
-{
- GeglOperationPointFilterClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-operation-insta-curve.h b/src/photos-operation-insta-curve.h
index a3f19f8..789d5c8 100644
--- a/src/photos-operation-insta-curve.h
+++ b/src/photos-operation-insta-curve.h
@@ -21,24 +21,18 @@
#ifndef PHOTOS_OPERATION_INSTA_CURVE_H
#define PHOTOS_OPERATION_INSTA_CURVE_H
-#include <glib-object.h>
+#include <gegl-plugin.h>
+
+#include "photos-gegl.h"
G_BEGIN_DECLS
#define PHOTOS_TYPE_OPERATION_INSTA_CURVE (photos_operation_insta_curve_get_type ())
-
-#define PHOTOS_OPERATION_INSTA_CURVE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_OPERATION_INSTA_CURVE, PhotosOperationInstaCurve))
-
-#define PHOTOS_IS_OPERATION_INSTA_CURVE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_OPERATION_INSTA_CURVE))
-
-typedef struct _PhotosOperationInstaCurve PhotosOperationInstaCurve;
-typedef struct _PhotosOperationInstaCurveClass PhotosOperationInstaCurveClass;
-
-GType photos_operation_insta_curve_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationInstaCurve,
+ photos_operation_insta_curve,
+ PHOTOS,
+ OPERATION_INSTA_CURVE,
+ GeglOperationPointFilter);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]