Commit 3ea02d25 authored by Umang Jain's avatar Umang Jain Committed by Debarshi Ray
Browse files

tracker-favorites-controller: Use G_DECLARE_FINAL_TYPE

https://bugzilla.gnome.org/show_bug.cgi?id=763712
parent 9ae7e30f
......@@ -37,11 +37,6 @@ struct _PhotosTrackerFavoritesController
PhotosOffsetController *offset_cntrlr;
};
struct _PhotosTrackerFavoritesControllerClass
{
PhotosTrackerControllerClass parent_class;
};
G_DEFINE_TYPE_WITH_CODE (PhotosTrackerFavoritesController,
photos_tracker_favorites_controller,
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment