[gnome-photos] google-item: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] google-item: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 6 Oct 2016 10:52:30 +0000 (UTC)
commit 835b0dbbc58cd43c11302466cc6a1cc95c8db54f
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 6 11:45:09 2016 +0200
google-item: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-google-item.c | 5 -----
src/photos-google-item.h | 15 ++-------------
2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-google-item.c b/src/photos-google-item.c
index f79d995..81b818e 100644
--- a/src/photos-google-item.c
+++ b/src/photos-google-item.c
@@ -46,11 +46,6 @@ struct _PhotosGoogleItem
PhotosBaseManager *src_mngr;
};
-struct _PhotosGoogleItemClass
-{
- PhotosBaseItemClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosGoogleItem, photos_google_item, PHOTOS_TYPE_BASE_ITEM,
photos_utils_ensure_extension_points ();
diff --git a/src/photos-google-item.h b/src/photos-google-item.h
index a8a5397..369940a 100644
--- a/src/photos-google-item.h
+++ b/src/photos-google-item.h
@@ -1,5 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
+ * Copyright © 2016 Red Hat, Inc.
* Copyright © 2014 Saurav Agarwalla
*
* This program is free software; you can redistribute it and/or
@@ -30,19 +31,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_GOOGLE_ITEM (photos_google_item_get_type ())
-
-#define PHOTOS_GOOGLE_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_GOOGLE_ITEM, PhotosGoogleItem))
-
-#define PHOTOS_IS_GOOGLE_ITEM(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_GOOGLE_ITEM))
-
-typedef struct _PhotosGoogleItem PhotosGoogleItem;
-typedef struct _PhotosGoogleItemClass PhotosGoogleItemClass;
-
-GType photos_google_item_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosGoogleItem, photos_google_item, PHOTOS, GOOGLE_ITEM, PhotosBaseItem);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]