[gnome-photos] operation-png-guess-sizes: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] operation-png-guess-sizes: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 21 Mar 2017 09:23:54 +0000 (UTC)
commit 15616ace73f7b81370e31a207b3635e5d3e3bb04
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Mar 21 09:39:38 2017 +0100
operation-png-guess-sizes: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-operation-png-guess-sizes.c | 6 ------
src/photos-operation-png-guess-sizes.h | 22 ++++++++--------------
2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-png-guess-sizes.c b/src/photos-operation-png-guess-sizes.c
index 7d79535..15c7e1a 100644
--- a/src/photos-operation-png-guess-sizes.c
+++ b/src/photos-operation-png-guess-sizes.c
@@ -25,7 +25,6 @@
#include <babl/babl.h>
#include <gegl.h>
-#include <gegl-plugin.h>
#include <png.h>
#include "photos-png-count.h"
@@ -41,11 +40,6 @@ struct _PhotosOperationPngGuessSizes
gsize sizes[2];
};
-struct _PhotosOperationPngGuessSizesClass
-{
- GeglOperationSinkClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-operation-png-guess-sizes.h b/src/photos-operation-png-guess-sizes.h
index 18e5087..018dbde 100644
--- a/src/photos-operation-png-guess-sizes.h
+++ b/src/photos-operation-png-guess-sizes.h
@@ -21,24 +21,18 @@
#ifndef PHOTOS_OPERATION_PNG_GUESS_SIZES_H
#define PHOTOS_OPERATION_PNG_GUESS_SIZES_H
-#include <glib-object.h>
+#include <gegl-plugin.h>
+
+#include "photos-gegl.h"
G_BEGIN_DECLS
#define PHOTOS_TYPE_OPERATION_PNG_GUESS_SIZES (photos_operation_png_guess_sizes_get_type ())
-
-#define PHOTOS_OPERATION_PNG_GUESS_SIZES(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_OPERATION_PNG_GUESS_SIZES, PhotosOperationPngGuessSizes))
-
-#define PHOTOS_IS_OPERATION_PNG_GUESS_SIZES(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_OPERATION_PNG_GUESS_SIZES))
-
-typedef struct _PhotosOperationPngGuessSizes PhotosOperationPngGuessSizes;
-typedef struct _PhotosOperationPngGuessSizesClass PhotosOperationPngGuessSizesClass;
-
-GType photos_operation_png_guess_sizes_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationPngGuessSizes,
+ photos_operation_png_guess_sizes,
+ PHOTOS,
+ OPERATION_PNG_GUESS_SIZES,
+ GeglOperationSink);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]