[gnome-photos] fetch-collections-job: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] fetch-collections-job: Use G_DECLARE_FINAL_TYPE
- Date: Sun, 27 Nov 2016 01:26:31 +0000 (UTC)
commit e1f5a88d8cff9df5c260b55e56a1c54bc2e87f4a
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Nov 27 01:59:52 2016 +0100
fetch-collections-job: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-fetch-collections-job.c | 5 -----
src/photos-fetch-collections-job.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-fetch-collections-job.c b/src/photos-fetch-collections-job.c
index dc663f2..e6038a3 100644
--- a/src/photos-fetch-collections-job.c
+++ b/src/photos-fetch-collections-job.c
@@ -45,11 +45,6 @@ struct _PhotosFetchCollectionsJob
gchar *urn;
};
-struct _PhotosFetchCollectionsJobClass
-{
- GObjectClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-fetch-collections-job.h b/src/photos-fetch-collections-job.h
index d7f9220..d07bed7 100644
--- a/src/photos-fetch-collections-job.h
+++ b/src/photos-fetch-collections-job.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_FETCH_COLLECTIONS_JOB (photos_fetch_collections_job_get_type ())
-
-#define PHOTOS_FETCH_COLLECTIONS_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_FETCH_COLLECTIONS_JOB, PhotosFetchCollectionsJob))
-
-#define PHOTOS_IS_FETCH_COLLECTIONS_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_FETCH_COLLECTIONS_JOB))
-
-typedef struct _PhotosFetchCollectionsJob PhotosFetchCollectionsJob;
-typedef struct _PhotosFetchCollectionsJobClass PhotosFetchCollectionsJobClass;
-
-GType photos_fetch_collections_job_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosFetchCollectionsJob,
+ photos_fetch_collections_job,
+ PHOTOS,
+ FETCH_COLLECTIONS_JOB,
+ GObject);
PhotosFetchCollectionsJob *photos_fetch_collections_job_new (const gchar *urn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]