[gnome-photos] create-collection-job: Use G_DECLARE_FINAL_TYPE



commit 34db666e2617142f96b97a816cceb0d3cb986005
Author: Shivam Tripathi <shivam flash gmail com>
Date:   Fri Jul 8 00:17:09 2016 +0530

    create-collection-job: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-create-collection-job.c |    5 -----
 src/photos-create-collection-job.h |   18 +++++-------------
 2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-create-collection-job.c b/src/photos-create-collection-job.c
index 043498f..2c5c26e 100644
--- a/src/photos-create-collection-job.c
+++ b/src/photos-create-collection-job.c
@@ -45,11 +45,6 @@ struct _PhotosCreateCollectionJob
   gchar *name;
 };
 
-struct _PhotosCreateCollectionJobClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-create-collection-job.h b/src/photos-create-collection-job.h
index 05302fb..abc208e 100644
--- a/src/photos-create-collection-job.h
+++ b/src/photos-create-collection-job.h
@@ -30,19 +30,11 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_CREATE_COLLECTION_JOB (photos_create_collection_job_get_type ())
-
-#define PHOTOS_CREATE_COLLECTION_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_CREATE_COLLECTION_JOB, PhotosCreateCollectionJob))
-
-#define PHOTOS_IS_CREATE_COLLECTION_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_CREATE_COLLECTION_JOB))
-
-typedef struct _PhotosCreateCollectionJob      PhotosCreateCollectionJob;
-typedef struct _PhotosCreateCollectionJobClass PhotosCreateCollectionJobClass;
-
-GType                       photos_create_collection_job_get_type    (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosCreateCollectionJob,
+                      photos_create_collection_job,
+                      PHOTOS,
+                      CREATE_COLLECTION_JOB,
+                      GObject)
 
 PhotosCreateCollectionJob  *photos_create_collection_job_new         (const gchar *name);
 


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