[gnome-photos] update-mtime-job: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] update-mtime-job: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 22 Nov 2016 11:16:28 +0000 (UTC)
commit 2f342e161fcf5d372255735be9e4bbc3a4f7e96a
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Nov 20 12:11:35 2016 +0100
update-mtime-job: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-update-mtime-job.c | 5 -----
src/photos-update-mtime-job.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-update-mtime-job.c b/src/photos-update-mtime-job.c
index 228050a..989ed5b 100644
--- a/src/photos-update-mtime-job.c
+++ b/src/photos-update-mtime-job.c
@@ -44,11 +44,6 @@ struct _PhotosUpdateMtimeJob
gchar *urn;
};
-struct _PhotosUpdateMtimeJobClass
-{
- GObjectClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-update-mtime-job.h b/src/photos-update-mtime-job.h
index 718f826..d06896d 100644
--- a/src/photos-update-mtime-job.h
+++ b/src/photos-update-mtime-job.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_UPDATE_MTIME_JOB (photos_update_mtime_job_get_type ())
-
-#define PHOTOS_UPDATE_MTIME_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_UPDATE_MTIME_JOB, PhotosUpdateMtimeJob))
-
-#define PHOTOS_IS_UPDATE_MTIME_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_UPDATE_MTIME_JOB))
-
-typedef struct _PhotosUpdateMtimeJob PhotosUpdateMtimeJob;
-typedef struct _PhotosUpdateMtimeJobClass PhotosUpdateMtimeJobClass;
-
-GType photos_update_mtime_job_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosUpdateMtimeJob, photos_update_mtime_job, PHOTOS, UPDATE_MTIME_JOB, GObject);
PhotosUpdateMtimeJob *photos_update_mtime_job_new (const gchar *urn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]