[gnome-photos] tracker-queue: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tracker-queue: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 16 Feb 2017 08:33:59 +0000 (UTC)
commit adb5cae35cea9f7e2de0a3897591e23094725ecc
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Feb 16 08:03:13 2017 +0100
tracker-queue: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-tracker-queue.c | 5 -----
src/photos-tracker-queue.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-tracker-queue.c b/src/photos-tracker-queue.c
index 1e2b6ce..26fdc1c 100644
--- a/src/photos-tracker-queue.c
+++ b/src/photos-tracker-queue.c
@@ -40,11 +40,6 @@ struct _PhotosTrackerQueue
gboolean running;
};
-struct _PhotosTrackerQueueClass
-{
- GObjectClass parent_class;
-};
-
static void photos_tracker_queue_initable_iface_init (GInitableIface *iface);
diff --git a/src/photos-tracker-queue.h b/src/photos-tracker-queue.h
index d16cd69..2152fa4 100644
--- a/src/photos-tracker-queue.h
+++ b/src/photos-tracker-queue.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_TRACKER_QUEUE (photos_tracker_queue_get_type ())
-
-#define PHOTOS_TRACKER_QUEUE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_TRACKER_QUEUE, PhotosTrackerQueue))
-
-#define PHOTOS_IS_TRACKER_QUEUE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_TRACKER_QUEUE))
-
-typedef struct _PhotosTrackerQueue PhotosTrackerQueue;
-typedef struct _PhotosTrackerQueueClass PhotosTrackerQueueClass;
-
-GType photos_tracker_queue_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosTrackerQueue, photos_tracker_queue, PHOTOS, TRACKER_QUEUE, GObject);
PhotosTrackerQueue *photos_tracker_queue_dup_singleton (GCancellable *cancellable, GError
**error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]