[gnome-photos] single-item-job: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] single-item-job: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 6 Sep 2017 07:15:09 +0000 (UTC)
commit 96a2869f1c9283820a5701296d7fcadfdef1c1d3
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 5 02:35:55 2017 +0530
single-item-job: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-single-item-job.c | 5 -----
src/photos-single-item-job.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-single-item-job.c b/src/photos-single-item-job.c
index d342528..b40a14c 100644
--- a/src/photos-single-item-job.c
+++ b/src/photos-single-item-job.c
@@ -41,11 +41,6 @@ struct _PhotosSingleItemJob
gchar *urn;
};
-struct _PhotosSingleItemJobClass
-{
- GObjectClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-single-item-job.h b/src/photos-single-item-job.h
index a7f778f..7a9de00 100644
--- a/src/photos-single-item-job.h
+++ b/src/photos-single-item-job.h
@@ -33,22 +33,10 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_SINGLE_ITEM_JOB (photos_single_item_job_get_type ())
-
-#define PHOTOS_SINGLE_ITEM_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_SINGLE_ITEM_JOB, PhotosSingleItemJob))
-
-#define PHOTOS_IS_SINGLE_ITEM_JOB(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_SINGLE_ITEM_JOB))
+G_DECLARE_FINAL_TYPE (PhotosSingleItemJob, photos_single_item_job, PHOTOS, SINGLE_ITEM_JOB, GObject);
typedef void (*PhotosSingleItemJobCallback) (TrackerSparqlCursor *, gpointer);
-typedef struct _PhotosSingleItemJob PhotosSingleItemJob;
-typedef struct _PhotosSingleItemJobClass PhotosSingleItemJobClass;
-
-GType photos_single_item_job_get_type (void) G_GNUC_CONST;
-
PhotosSingleItemJob *photos_single_item_job_new (const gchar *urn);
TrackerSparqlCursor *photos_single_item_job_finish (PhotosSingleItemJob *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]