[gnome-photos] tracker-favorites-controller: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tracker-favorites-controller: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 5 Sep 2017 07:00:29 +0000 (UTC)
commit 3ea02d25e84e3a4f71ca237adc657aa489ce7460
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 5 01:19:29 2017 +0530
tracker-favorites-controller: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-tracker-favorites-controller.c | 5 -----
src/photos-tracker-favorites-controller.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-tracker-favorites-controller.c b/src/photos-tracker-favorites-controller.c
index d898e55..ea1cf00 100644
--- a/src/photos-tracker-favorites-controller.c
+++ b/src/photos-tracker-favorites-controller.c
@@ -37,11 +37,6 @@ struct _PhotosTrackerFavoritesController
PhotosOffsetController *offset_cntrlr;
};
-struct _PhotosTrackerFavoritesControllerClass
-{
- PhotosTrackerControllerClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosTrackerFavoritesController,
photos_tracker_favorites_controller,
diff --git a/src/photos-tracker-favorites-controller.h b/src/photos-tracker-favorites-controller.h
index cb57b21..8b85057 100644
--- a/src/photos-tracker-favorites-controller.h
+++ b/src/photos-tracker-favorites-controller.h
@@ -26,19 +26,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_TRACKER_FAVORITES_CONTROLLER (photos_tracker_favorites_controller_get_type ())
-
-#define PHOTOS_TRACKER_FAVORITES_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_TRACKER_FAVORITES_CONTROLLER, PhotosTrackerFavoritesController))
-
-#define PHOTOS_IS_TRACKER_FAVORITES_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_TRACKER_FAVORITES_CONTROLLER))
-
-typedef struct _PhotosTrackerFavoritesController PhotosTrackerFavoritesController;
-typedef struct _PhotosTrackerFavoritesControllerClass PhotosTrackerFavoritesControllerClass;
-
-GType photos_tracker_favorites_controller_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosTrackerFavoritesController,
+ photos_tracker_favorites_controller,
+ PHOTOS,
+ TRACKER_FAVORITES_CONTROLLER,
+ PhotosTrackerController);
PhotosTrackerController *photos_tracker_favorites_controller_dup_singleton (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]