[gnome-photos] share-dialog: Use G_DECLARE_FINAL_TYPE
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] share-dialog: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 6 Sep 2017 15:59:14 +0000 (UTC)
commit 9a51da802e28429b815656f29fc86f27a3060f28
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 5 02:43:57 2017 +0530
share-dialog: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-share-dialog.c | 5 -----
src/photos-share-dialog.h | 26 +-------------------------
2 files changed, 1 insertions(+), 30 deletions(-)
---
diff --git a/src/photos-share-dialog.c b/src/photos-share-dialog.c
index 1f236c9..859b876 100644
--- a/src/photos-share-dialog.c
+++ b/src/photos-share-dialog.c
@@ -36,11 +36,6 @@ struct _PhotosShareDialog
PhotosBaseItem *item;
};
-struct _PhotosShareDialogClass
-{
- GtkDialogClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-share-dialog.h b/src/photos-share-dialog.h
index 0ecbb89..f057b4f 100644
--- a/src/photos-share-dialog.h
+++ b/src/photos-share-dialog.h
@@ -29,31 +29,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_SHARE_DIALOG (photos_share_dialog_get_type ())
-
-#define PHOTOS_SHARE_DIALOG(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_SHARE_DIALOG, PhotosShareDialog))
-
-#define PHOTOS_SHARE_DIALOG_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- PHOTOS_TYPE_SHARE_DIALOG, PhotosShareDialogClass))
-
-#define PHOTOS_IS_SHARE_DIALOG(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_SHARE_DIALOG))
-
-#define PHOTOS_IS_SHARE_DIALOG_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- PHOTOS_TYPE_SHARE_DIALOG))
-
-#define PHOTOS_SHARE_DIALOG_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- PHOTOS_TYPE_SHARE_DIALOG, PhotosShareDialogClass))
-
-typedef struct _PhotosShareDialog PhotosShareDialog;
-typedef struct _PhotosShareDialogClass PhotosShareDialogClass;
-
-GType photos_share_dialog_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosShareDialog, photos_share_dialog, PHOTOS, SHARE_DIALOG, GtkDialog);
GtkWidget *photos_share_dialog_new (GtkWindow *parent, PhotosBaseItem *item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]