[gnome-photos] offset-favorites-controller: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] offset-favorites-controller: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 2 Mar 2017 07:59:54 +0000 (UTC)
commit 7a6753b0b280265cd2a3ed8bad95e6b2d84356ad
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Mar 2 07:59:54 2017 +0100
offset-favorites-controller: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-offset-favorites-controller.c | 5 -----
src/photos-offset-favorites-controller.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-offset-favorites-controller.c b/src/photos-offset-favorites-controller.c
index 16d3161..1181464 100644
--- a/src/photos-offset-favorites-controller.c
+++ b/src/photos-offset-favorites-controller.c
@@ -39,11 +39,6 @@ struct _PhotosOffsetFavoritesController
PhotosBaseManager *item_mngr;
};
-struct _PhotosOffsetFavoritesControllerClass
-{
- PhotosOffsetControllerClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosOffsetFavoritesController, photos_offset_favorites_controller,
PHOTOS_TYPE_OFFSET_CONTROLLER);
diff --git a/src/photos-offset-favorites-controller.h b/src/photos-offset-favorites-controller.h
index 7f07bcd..a3775e8 100644
--- a/src/photos-offset-favorites-controller.h
+++ b/src/photos-offset-favorites-controller.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_OFFSET_FAVORITES_CONTROLLER (photos_offset_favorites_controller_get_type ())
-
-#define PHOTOS_OFFSET_FAVORITES_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_OFFSET_FAVORITES_CONTROLLER, PhotosOffsetFavoritesController))
-
-#define PHOTOS_IS_OFFSET_FAVORITES_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_OFFSET_FAVORITES_CONTROLLER))
-
-typedef struct _PhotosOffsetFavoritesController PhotosOffsetFavoritesController;
-typedef struct _PhotosOffsetFavoritesControllerClass PhotosOffsetFavoritesControllerClass;
-
-GType photos_offset_favorites_controller_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOffsetFavoritesController,
+ photos_offset_favorites_controller,
+ PHOTOS,
+ OFFSET_FAVORITES_CONTROLLER,
+ PhotosOffsetController);
PhotosOffsetController *photos_offset_favorites_controller_dup_singleton (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]