[gnome-photos] operation-jpg-guess-sizes: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] operation-jpg-guess-sizes: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 21 Mar 2017 09:23:49 +0000 (UTC)
commit 4ca28b59f7c10565a827e44ba3309077bf145c55
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Mar 21 09:30:46 2017 +0100
operation-jpg-guess-sizes: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-operation-jpg-guess-sizes.c | 6 ------
src/photos-operation-jpg-guess-sizes.h | 22 ++++++++--------------
2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-operation-jpg-guess-sizes.c b/src/photos-operation-jpg-guess-sizes.c
index b7b5349..62b05c9 100644
--- a/src/photos-operation-jpg-guess-sizes.c
+++ b/src/photos-operation-jpg-guess-sizes.c
@@ -25,7 +25,6 @@
#include <babl/babl.h>
#include <gegl.h>
-#include <gegl-plugin.h>
#include <jpeglib.h>
#include "photos-jpeg-count.h"
@@ -42,11 +41,6 @@ struct _PhotosOperationJpgGuessSizes
gsize sizes[2];
};
-struct _PhotosOperationJpgGuessSizesClass
-{
- GeglOperationSinkClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-operation-jpg-guess-sizes.h b/src/photos-operation-jpg-guess-sizes.h
index e2b94ad..53c697c 100644
--- a/src/photos-operation-jpg-guess-sizes.h
+++ b/src/photos-operation-jpg-guess-sizes.h
@@ -21,24 +21,18 @@
#ifndef PHOTOS_OPERATION_JPG_GUESS_SIZES_H
#define PHOTOS_OPERATION_JPG_GUESS_SIZES_H
-#include <glib-object.h>
+#include <gegl-plugin.h>
+
+#include "photos-gegl.h"
G_BEGIN_DECLS
#define PHOTOS_TYPE_OPERATION_JPG_GUESS_SIZES (photos_operation_jpg_guess_sizes_get_type ())
-
-#define PHOTOS_OPERATION_JPG_GUESS_SIZES(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_OPERATION_JPG_GUESS_SIZES, PhotosOperationJpgGuessSizes))
-
-#define PHOTOS_IS_OPERATION_JPG_GUESS_SIZES(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_OPERATION_JPG_GUESS_SIZES))
-
-typedef struct _PhotosOperationJpgGuessSizes PhotosOperationJpgGuessSizes;
-typedef struct _PhotosOperationJpgGuessSizesClass PhotosOperationJpgGuessSizesClass;
-
-GType photos_operation_jpg_guess_sizes_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOperationJpgGuessSizes,
+ photos_operation_jpg_guess_sizes,
+ PHOTOS,
+ OPERATION_JPG_GUESS_SIZES,
+ GeglOperationSink);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]