[gnome-photos] fetch-ids-job: Use G_DECLARE_FINAL_TYPE



commit 819bd9c28e10985352433c5568e683465797df27
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Nov 27 02:07:29 2016 +0100

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

 src/photos-fetch-ids-job.c |    5 -----
 src/photos-fetch-ids-job.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-fetch-ids-job.c b/src/photos-fetch-ids-job.c
index 0f9d8eb..442231c 100644
--- a/src/photos-fetch-ids-job.c
+++ b/src/photos-fetch-ids-job.c
@@ -44,11 +44,6 @@ struct _PhotosFetchIdsJob
   gchar **terms;
 };
 
-struct _PhotosFetchIdsJobClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-fetch-ids-job.h b/src/photos-fetch-ids-job.h
index f905098..1d5d358 100644
--- a/src/photos-fetch-ids-job.h
+++ b/src/photos-fetch-ids-job.h
@@ -32,22 +32,10 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_FETCH_IDS_JOB (photos_fetch_ids_job_get_type ())
-
-#define PHOTOS_FETCH_IDS_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_FETCH_IDS_JOB, PhotosFetchIdsJob))
-
-#define PHOTOS_IS_FETCH_IDS_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_FETCH_IDS_JOB))
+G_DECLARE_FINAL_TYPE (PhotosFetchIdsJob, photos_fetch_ids_job, PHOTOS, FETCH_IDS_JOB, GObject);
 
 typedef void (*PhotosFetchIdsJobCallback) (const gchar *const *, gpointer);
 
-typedef struct _PhotosFetchIdsJob      PhotosFetchIdsJob;
-typedef struct _PhotosFetchIdsJobClass PhotosFetchIdsJobClass;
-
-GType                photos_fetch_ids_job_get_type          (void) G_GNUC_CONST;
-
 PhotosFetchIdsJob   *photos_fetch_ids_job_new               (const gchar *const *terms);
 
 const gchar *const  *photos_fetch_ids_job_finish            (PhotosFetchIdsJob *self,


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