[gnome-photos] delete-item-job: Use G_DECLARE_FINAL_TYPE



commit e32b008e5c8000d93d3d0db36c89941b8ed98d8a
Author: Shivam Tripathi <shivam flash gmail com>
Date:   Fri Jul 8 00:23:37 2016 +0530

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

 src/photos-delete-item-job.c |    5 -----
 src/photos-delete-item-job.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-delete-item-job.c b/src/photos-delete-item-job.c
index 245f34a..269e433 100644
--- a/src/photos-delete-item-job.c
+++ b/src/photos-delete-item-job.c
@@ -44,11 +44,6 @@ struct _PhotosDeleteItemJob
   gchar *urn;
 };
 
-struct _PhotosDeleteItemJobClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-delete-item-job.h b/src/photos-delete-item-job.h
index 63a14f8..4483b10 100644
--- a/src/photos-delete-item-job.h
+++ b/src/photos-delete-item-job.h
@@ -30,19 +30,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_DELETE_ITEM_JOB (photos_delete_item_job_get_type ())
-
-#define PHOTOS_DELETE_ITEM_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_DELETE_ITEM_JOB, PhotosDeleteItemJob))
-
-#define PHOTOS_IS_DELETE_ITEM_JOB(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_DELETE_ITEM_JOB))
-
-typedef struct _PhotosDeleteItemJob      PhotosDeleteItemJob;
-typedef struct _PhotosDeleteItemJobClass PhotosDeleteItemJobClass;
-
-GType                       photos_delete_item_job_get_type    (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosDeleteItemJob, photos_delete_item_job, PHOTOS, DELETE_ITEM_JOB, GObject)
 
 PhotosDeleteItemJob        *photos_delete_item_job_new         (const gchar *urn);
 


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