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



commit 57930024e1b33f42d4d1764e763b081a874122e8
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 03:25:59 2017 +0530

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

 src/photos-set-collection-job.c |    5 -----
 src/photos-set-collection-job.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-set-collection-job.c b/src/photos-set-collection-job.c
index 4f0af7c..f7c81d7 100644
--- a/src/photos-set-collection-job.c
+++ b/src/photos-set-collection-job.c
@@ -50,11 +50,6 @@ struct _PhotosSetCollectionJob
   gpointer user_data;
 };
 
-struct _PhotosSetCollectionJobClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-set-collection-job.h b/src/photos-set-collection-job.h
index 97a04e7..128714e 100644
--- a/src/photos-set-collection-job.h
+++ b/src/photos-set-collection-job.h
@@ -30,22 +30,10 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_SET_COLLECTION_JOB (photos_set_collection_job_get_type ())
-
-#define PHOTOS_SET_COLLECTION_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_SET_COLLECTION_JOB, PhotosSetCollectionJob))
-
-#define PHOTOS_IS_SET_COLLECTION_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_SET_COLLECTION_JOB))
+G_DECLARE_FINAL_TYPE (PhotosSetCollectionJob, photos_set_collection_job, PHOTOS, SET_COLLECTION_JOB, 
GObject);
 
 typedef void (*PhotosSetCollectionJobCallback) (gpointer);
 
-typedef struct _PhotosSetCollectionJob      PhotosSetCollectionJob;
-typedef struct _PhotosSetCollectionJobClass PhotosSetCollectionJobClass;
-
-GType                     photos_set_collection_job_get_type    (void) G_GNUC_CONST;
-
 PhotosSetCollectionJob   *photos_set_collection_job_new         (const gchar *collection_urn, gboolean 
setting);
 
 void                      photos_set_collection_job_run         (PhotosSetCollectionJob *self,


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