[gnome-photos] spinner-box: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] spinner-box: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 5 Sep 2017 08:01:18 +0000 (UTC)
commit edc79f810d327142ee4cafcfca6937b8578bf26f
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 5 02:00:46 2017 +0530
spinner-box: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-spinner-box.c | 5 -----
src/photos-spinner-box.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-spinner-box.c b/src/photos-spinner-box.c
index c87906d..cfc8c13 100644
--- a/src/photos-spinner-box.c
+++ b/src/photos-spinner-box.c
@@ -37,11 +37,6 @@ struct _PhotosSpinnerBox
GtkWidget *spinner;
};
-struct _PhotosSpinnerBoxClass
-{
- GtkRevealerClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosSpinnerBox, photos_spinner_box, GTK_TYPE_REVEALER);
diff --git a/src/photos-spinner-box.h b/src/photos-spinner-box.h
index 85b54ab..24d2b67 100644
--- a/src/photos-spinner-box.h
+++ b/src/photos-spinner-box.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_SPINNER_BOX (photos_spinner_box_get_type ())
-
-#define PHOTOS_SPINNER_BOX(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_SPINNER_BOX, PhotosSpinnerBox))
-
-#define PHOTOS_IS_SPINNER_BOX(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_SPINNER_BOX))
-
-typedef struct _PhotosSpinnerBox PhotosSpinnerBox;
-typedef struct _PhotosSpinnerBoxClass PhotosSpinnerBoxClass;
-
-GType photos_spinner_box_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosSpinnerBox, photos_spinner_box, PHOTOS, SPINNER_BOX, GtkRevealer);
GtkWidget *photos_spinner_box_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]