Commit edc79f81 authored by Umang Jain's avatar Umang Jain Committed by Debarshi Ray
Browse files

spinner-box: Use G_DECLARE_FINAL_TYPE

https://bugzilla.gnome.org/show_bug.cgi?id=763712
parent a0e5d7c8
......@@ -37,11 +37,6 @@ struct _PhotosSpinnerBox
GtkWidget *spinner;
};
struct _PhotosSpinnerBoxClass
{
GtkRevealerClass parent_class;
};
G_DEFINE_TYPE (PhotosSpinnerBox, photos_spinner_box, GTK_TYPE_REVEALER);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment