[gnome-photos] organize-collection-view: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] organize-collection-view: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 18 Jul 2017 10:08:06 +0000 (UTC)
commit e1b422cdca07ccbfbbf641dcfe6a4ef69f9e4f2b
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jul 13 17:16:07 2017 +0200
organize-collection-view: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-organize-collection-view.c | 5 -----
src/photos-organize-collection-view.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-organize-collection-view.c b/src/photos-organize-collection-view.c
index 6070770..4af11d7 100644
--- a/src/photos-organize-collection-view.c
+++ b/src/photos-organize-collection-view.c
@@ -55,11 +55,6 @@ struct _PhotosOrganizeCollectionView
gboolean choice_confirmed;
};
-struct _PhotosOrganizeCollectionViewClass
-{
- GtkTreeViewClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosOrganizeCollectionView, photos_organize_collection_view, GTK_TYPE_TREE_VIEW);
diff --git a/src/photos-organize-collection-view.h b/src/photos-organize-collection-view.h
index 1a2e5ed..fc9638b 100644
--- a/src/photos-organize-collection-view.h
+++ b/src/photos-organize-collection-view.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_ORGANIZE_COLLECTION_VIEW (photos_organize_collection_view_get_type ())
-
-#define PHOTOS_ORGANIZE_COLLECTION_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_ORGANIZE_COLLECTION_VIEW, PhotosOrganizeCollectionView))
-
-#define PHOTOS_IS_ORGANIZE_COLLECTION_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_ORGANIZE_COLLECTION_VIEW))
-
-typedef struct _PhotosOrganizeCollectionView PhotosOrganizeCollectionView;
-typedef struct _PhotosOrganizeCollectionViewClass PhotosOrganizeCollectionViewClass;
-
-GType photos_organize_collection_view_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOrganizeCollectionView,
+ photos_organize_collection_view,
+ PHOTOS,
+ ORGANIZE_COLLECTION_VIEW,
+ GtkTreeView);
GtkWidget *photos_organize_collection_view_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]