[gnome-photos] operation-saturation: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] operation-saturation: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 21 Mar 2017 09:23:59 +0000 (UTC)
commit ab748d7818797485bbc88b8cc8b64be859db8381
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Mar 21 09:42:09 2017 +0100
operation-saturation: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-operation-saturation.c | 6 ------
src/photos-operation-saturation.h | 22 ++++++++--------------
2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-saturation.c b/src/photos-operation-saturation.c
index 8c7b7c4..a1f2d67 100644
--- a/src/photos-operation-saturation.c
+++ b/src/photos-operation-saturation.c
@@ -23,7 +23,6 @@
#include <babl/babl.h>
#include <gegl.h>
-#include <gegl-plugin.h>
#include "photos-operation-saturation.h"
@@ -37,11 +36,6 @@ struct _PhotosOperationSaturation
gfloat scale;
};
-struct _PhotosOperationSaturationClass
-{
- GeglOperationPointFilterClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-operation-saturation.h b/src/photos-operation-saturation.h
index 5181551..d8e2ee7 100644
--- a/src/photos-operation-saturation.h
+++ b/src/photos-operation-saturation.h
@@ -21,24 +21,18 @@
#ifndef PHOTOS_OPERATION_SATURATION_H
#define PHOTOS_OPERATION_SATURATION_H
-#include <glib-object.h>
+#include <gegl-plugin.h>
+
+#include "photos-gegl.h"
G_BEGIN_DECLS
#define PHOTOS_TYPE_OPERATION_SATURATION (photos_operation_saturation_get_type ())
-
-#define PHOTOS_OPERATION_SATURATION(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_OPERATION_SATURATION, PhotosOperationSaturation))
-
-#define PHOTOS_IS_OPERATION_SATURATION(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_OPERATION_SATURATION))
-
-typedef struct _PhotosOperationSaturation PhotosOperationSaturation;
-typedef struct _PhotosOperationSaturationClass PhotosOperationSaturationClass;
-
-GType photos_operation_saturation_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationSaturation,
+ photos_operation_saturation,
+ PHOTOS,
+ OPERATION_SATURATION,
+ GeglOperationPointFilter);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]