[gnome-photos] local-item: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] local-item: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 6 Oct 2016 09:34:04 +0000 (UTC)
commit 9931fecdc6c6e0c218ecdb30aceee6fa2259332e
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jul 25 09:36:09 2016 +0200
local-item: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-local-item.c | 5 -----
src/photos-local-item.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-local-item.c b/src/photos-local-item.c
index 6478fec..7841589 100644
--- a/src/photos-local-item.c
+++ b/src/photos-local-item.c
@@ -41,11 +41,6 @@ struct _PhotosLocalItem
GCancellable *cancellable;
};
-struct _PhotosLocalItemClass
-{
- PhotosBaseItemClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosLocalItem, photos_local_item, PHOTOS_TYPE_BASE_ITEM,
photos_utils_ensure_extension_points ();
diff --git a/src/photos-local-item.h b/src/photos-local-item.h
index b6dfdad..1dea86c 100644
--- a/src/photos-local-item.h
+++ b/src/photos-local-item.h
@@ -32,19 +32,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_LOCAL_ITEM (photos_local_item_get_type ())
-
-#define PHOTOS_LOCAL_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_LOCAL_ITEM, PhotosLocalItem))
-
-#define PHOTOS_IS_LOCAL_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_LOCAL_ITEM))
-
-typedef struct _PhotosLocalItem PhotosLocalItem;
-typedef struct _PhotosLocalItemClass PhotosLocalItemClass;
-
-GType photos_local_item_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosLocalItem, photos_local_item, PHOTOS, LOCAL_ITEM, PhotosBaseItem)
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]