[gnome-photos/wip/rishi/declare-final: 1/3] operation-insta-curve: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/declare-final: 1/3] operation-insta-curve: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 16 Mar 2017 06:58:54 +0000 (UTC)
commit 74b77bdff927cb9c966c0fd330b2d72c4ee198fc
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 | 20 ++++++--------------
2 files changed, 6 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..9d8c8fa 100644
--- a/src/photos-operation-insta-curve.h
+++ b/src/photos-operation-insta-curve.h
@@ -21,24 +21,16 @@
#ifndef PHOTOS_OPERATION_INSTA_CURVE_H
#define PHOTOS_OPERATION_INSTA_CURVE_H
-#include <glib-object.h>
+#include <gegl-plugin.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]