[gnome-photos] organize-collection-dialog: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] organize-collection-dialog: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 9 Feb 2017 08:41:28 +0000 (UTC)
commit e532a4a16bf734a0d2687d1f04051483215f4d87
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Feb 9 09:37:57 2017 +0100
organize-collection-dialog: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-organize-collection-dialog.c | 5 -----
src/photos-organize-collection-dialog.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-organize-collection-dialog.c b/src/photos-organize-collection-dialog.c
index 87e2362..14edd5c 100644
--- a/src/photos-organize-collection-dialog.c
+++ b/src/photos-organize-collection-dialog.c
@@ -37,11 +37,6 @@ struct _PhotosOrganizeCollectionDialog
GtkWidget *coll_view;
};
-struct _PhotosOrganizeCollectionDialogClass
-{
- GtkDialogClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosOrganizeCollectionDialog, photos_organize_collection_dialog, GTK_TYPE_DIALOG);
diff --git a/src/photos-organize-collection-dialog.h b/src/photos-organize-collection-dialog.h
index e4e6f69..0c37275 100644
--- a/src/photos-organize-collection-dialog.h
+++ b/src/photos-organize-collection-dialog.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_ORGANIZE_COLLECTION_DIALOG (photos_organize_collection_dialog_get_type ())
-
-#define PHOTOS_ORGANIZE_COLLECTION_DIALOG(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_ORGANIZE_COLLECTION_DIALOG, PhotosOrganizeCollectionDialog))
-
-#define PHOTOS_IS_ORGANIZE_COLLECTION_DIALOG(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_ORGANIZE_COLLECTION_DIALOG))
-
-typedef struct _PhotosOrganizeCollectionDialog PhotosOrganizeCollectionDialog;
-typedef struct _PhotosOrganizeCollectionDialogClass PhotosOrganizeCollectionDialogClass;
-
-GType photos_organize_collection_dialog_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOrganizeCollectionDialog,
+ photos_organize_collection_dialog,
+ PHOTOS,
+ ORGANIZE_COLLECTION_DIALOG,
+ GtkDialog);
GtkWidget *photos_organize_collection_dialog_new (GtkWindow *parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]