[gnome-photos] fetch-metas-job: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] fetch-metas-job: Use G_DECLARE_FINAL_TYPE
- Date: Sun, 27 Nov 2016 01:26:41 +0000 (UTC)
commit f22e431c40e2560b4e46597218b8247af9b861b5
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Nov 27 02:10:00 2016 +0100
fetch-metas-job: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-fetch-metas-job.c | 5 -----
src/photos-fetch-metas-job.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-fetch-metas-job.c b/src/photos-fetch-metas-job.c
index 2f8ede6..693efea 100644
--- a/src/photos-fetch-metas-job.c
+++ b/src/photos-fetch-metas-job.c
@@ -49,11 +49,6 @@ struct _PhotosFetchMetasJob
guint active_jobs;
};
-struct _PhotosFetchMetasJobClass
-{
- GObjectClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-fetch-metas-job.h b/src/photos-fetch-metas-job.h
index 37ff99e..18b4329 100644
--- a/src/photos-fetch-metas-job.h
+++ b/src/photos-fetch-metas-job.h
@@ -32,14 +32,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_FETCH_METAS_JOB (photos_fetch_metas_job_get_type ())
-
-#define PHOTOS_FETCH_METAS_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_FETCH_METAS_JOB, PhotosFetchMetasJob))
-
-#define PHOTOS_IS_FETCH_METAS_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_FETCH_METAS_JOB))
+G_DECLARE_FINAL_TYPE (PhotosFetchMetasJob, photos_fetch_metas_job, PHOTOS, FETCH_METAS_JOB, GObject);
typedef struct _PhotosFetchMeta PhotosFetchMeta;
@@ -55,11 +48,6 @@ void photos_fetch_meta_free (PhotosFetchMeta
typedef void (*PhotosFetchMetasJobCallback) (GList *, gpointer);
-typedef struct _PhotosFetchMetasJob PhotosFetchMetasJob;
-typedef struct _PhotosFetchMetasJobClass PhotosFetchMetasJobClass;
-
-GType photos_fetch_metas_job_get_type (void) G_GNUC_CONST;
-
PhotosFetchMetasJob *photos_fetch_metas_job_new (const gchar *const *ids);
void photos_fetch_metas_job_run (PhotosFetchMetasJob *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]