[gnome-photos] media-server-item: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] media-server-item: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 6 Oct 2016 10:52:35 +0000 (UTC)
commit 46c88a0c13d94bb604213cd660981c4fc545f7b0
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 6 11:45:43 2016 +0200
media-server-item: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-media-server-item.c | 5 -----
src/photos-media-server-item.h | 15 ++-------------
2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-media-server-item.c b/src/photos-media-server-item.c
index 58e6a95..6fe0561 100644
--- a/src/photos-media-server-item.c
+++ b/src/photos-media-server-item.c
@@ -45,11 +45,6 @@ struct _PhotosMediaServerItem
PhotosBaseManager *src_mngr;
};
-struct _PhotosMediaServerItemClass
-{
- PhotosBaseItemClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosMediaServerItem, photos_media_server_item, PHOTOS_TYPE_BASE_ITEM,
photos_utils_ensure_extension_points ();
diff --git a/src/photos-media-server-item.h b/src/photos-media-server-item.h
index d74cbd6..0e8b6b4 100644
--- a/src/photos-media-server-item.h
+++ b/src/photos-media-server-item.h
@@ -1,6 +1,7 @@
/*
* Photos - access, organize and share your photos on GNOME
* Copyright © 2014 Pranav Kant
+ * 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_MEDIA_SERVER_ITEM (photos_media_server_item_get_type ())
-
-#define PHOTOS_MEDIA_SERVER_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_MEDIA_SERVER_ITEM, PhotosMediaServerItem))
-
-#define PHOTOS_IS_MEDIA_SERVER_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_MEDIA_SERVER_ITEM))
-
-typedef struct _PhotosMediaServerItem PhotosMediaServerItem;
-typedef struct _PhotosMediaServerItemClass PhotosMediaServerItemClass;
-
-GType photos_media_server_item_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosMediaServerItem, photos_media_server_item, PHOTOS, MEDIA_SERVER_ITEM,
PhotosBaseItem);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]