[gnome-photos] facebook-item: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] facebook-item: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 6 Oct 2016 10:52:20 +0000 (UTC)
commit 0c106e12c0d5caeeb10aaa0005272531267d43b3
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 6 11:41:50 2016 +0200
facebook-item: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-facebook-item.c | 5 -----
src/photos-facebook-item.h | 15 ++-------------
2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-facebook-item.c b/src/photos-facebook-item.c
index 0cd5c90..68ff968 100644
--- a/src/photos-facebook-item.c
+++ b/src/photos-facebook-item.c
@@ -48,11 +48,6 @@ struct _PhotosFacebookItem
PhotosBaseManager *src_mngr;
};
-struct _PhotosFacebookItemClass
-{
- PhotosBaseItemClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosFacebookItem, photos_facebook_item, PHOTOS_TYPE_BASE_ITEM,
photos_utils_ensure_extension_points ();
diff --git a/src/photos-facebook-item.h b/src/photos-facebook-item.h
index 19bdbde..73a10c2 100644
--- a/src/photos-facebook-item.h
+++ b/src/photos-facebook-item.h
@@ -1,6 +1,7 @@
/*
* Photos - access, organize and share your photos on GNOME
* Copyright © 2013 Álvaro Peña
+ * Copyright © 2016 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -30,19 +31,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_FACEBOOK_ITEM (photos_facebook_item_get_type ())
-
-#define PHOTOS_FACEBOOK_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_FACEBOOK_ITEM, PhotosFacebookItem))
-
-#define PHOTOS_IS_FACEBOOK_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_FACEBOOK_ITEM))
-
-typedef struct _PhotosFacebookItem PhotosFacebookItem;
-typedef struct _PhotosFacebookItemClass PhotosFacebookItemClass;
-
-GType photos_facebook_item_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosFacebookItem, photos_facebook_item, PHOTOS, FACEBOOK_ITEM, PhotosBaseItem);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]