[gnome-photos] flickr-item: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] flickr-item: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 6 Oct 2016 10:52:25 +0000 (UTC)
commit 6a2bb36763a29cfdb43883ffb2cfac8abf00c82b
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 6 11:43:52 2016 +0200
flickr-item: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-flickr-item.c | 5 -----
src/photos-flickr-item.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-flickr-item.c b/src/photos-flickr-item.c
index 249782a..a1b938b 100644
--- a/src/photos-flickr-item.c
+++ b/src/photos-flickr-item.c
@@ -48,11 +48,6 @@ struct _PhotosFlickrItem
PhotosBaseManager *src_mngr;
};
-struct _PhotosFlickrItemClass
-{
- PhotosBaseItemClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosFlickrItem, photos_flickr_item, PHOTOS_TYPE_BASE_ITEM,
photos_utils_ensure_extension_points ();
diff --git a/src/photos-flickr-item.h b/src/photos-flickr-item.h
index 8bc3157..bb10067 100644
--- a/src/photos-flickr-item.h
+++ b/src/photos-flickr-item.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_FLICKR_ITEM (photos_flickr_item_get_type ())
-
-#define PHOTOS_FLICKR_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_FLICKR_ITEM, PhotosFlickrItem))
-
-#define PHOTOS_IS_FLICKR_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_FLICKR_ITEM))
-
-typedef struct _PhotosFlickrItem PhotosFlickrItem;
-typedef struct _PhotosFlickrItemClass PhotosFlickrItemClass;
-
-GType photos_flickr_item_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosFlickrItem, photos_flickr_item, PHOTOS, FLICKR_ITEM, PhotosBaseItem);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]