[gnome-photos] pipeline: Use G_DECLARE_FINAL_TYPE



commit f48c8168d1cce8306674897a1be8d10743664e16
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Feb 28 10:58:23 2017 +0100

    pipeline: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-pipeline.c |    5 -----
 src/photos-pipeline.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index 025b7c0..cac51d4 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -43,11 +43,6 @@ struct _PhotosPipeline
   gchar *uri;
 };
 
-struct _PhotosPipelineClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-pipeline.h b/src/photos-pipeline.h
index 95dce75..99c287d 100644
--- a/src/photos-pipeline.h
+++ b/src/photos-pipeline.h
@@ -29,19 +29,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_PIPELINE (photos_pipeline_get_type ())
-
-#define PHOTOS_PIPELINE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_PIPELINE, PhotosPipeline))
-
-#define PHOTOS_IS_PIPELINE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_PIPELINE))
-
-typedef struct _PhotosPipeline      PhotosPipeline;
-typedef struct _PhotosPipelineClass PhotosPipelineClass;
-
-GType                  photos_pipeline_get_type          (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPipeline, photos_pipeline, PHOTOS, PIPELINE, GObject);
 
 void                   photos_pipeline_new_async         (GeglNode *parent,
                                                           const gchar *uri,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]