[gnome-photos/wip/rishi/declare-final: 2/3] operation-insta-filter: 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: 2/3] operation-insta-filter: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 16 Mar 2017 06:58:59 +0000 (UTC)
commit ab09a4709af8cec58c1623971c5c13c19faf8866
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 15 10:37:27 2017 +0100
operation-insta-filter: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-operation-insta-filter.c | 6 ------
src/photos-operation-insta-filter.h | 20 ++++++--------------
2 files changed, 6 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-insta-filter.c b/src/photos-operation-insta-filter.c
index f086ee7..fa6dad5 100644
--- a/src/photos-operation-insta-filter.c
+++ b/src/photos-operation-insta-filter.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 _PhotosOperationInstaFilter
PhotosOperationInstaPreset preset;
};
-struct _PhotosOperationInstaFilterClass
-{
- GeglOperationMetaClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-operation-insta-filter.h b/src/photos-operation-insta-filter.h
index 567e385..34f87c1 100644
--- a/src/photos-operation-insta-filter.h
+++ b/src/photos-operation-insta-filter.h
@@ -21,24 +21,16 @@
#ifndef PHOTOS_OPERATION_INSTA_FILTER_H
#define PHOTOS_OPERATION_INSTA_FILTER_H
-#include <glib-object.h>
+#include <gegl-plugin.h>
G_BEGIN_DECLS
#define PHOTOS_TYPE_OPERATION_INSTA_FILTER (photos_operation_insta_filter_get_type ())
-
-#define PHOTOS_OPERATION_INSTA_FILTER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_OPERATION_INSTA_FILTER, PhotosOperationInstaFilter))
-
-#define PHOTOS_IS_OPERATION_INSTA_FILTER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_OPERATION_INSTA_FILTER))
-
-typedef struct _PhotosOperationInstaFilter PhotosOperationInstaFilter;
-typedef struct _PhotosOperationInstaFilterClass PhotosOperationInstaFilterClass;
-
-GType photos_operation_insta_filter_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationInstaFilter,
+ photos_operation_insta_filter,
+ PHOTOS,
+ OPERATION_INSTA_FILTER,
+ GeglOperationMeta);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]