Commit 9a51da80 authored by Umang Jain's avatar Umang Jain
Browse files

share-dialog: Use G_DECLARE_FINAL_TYPE

https://bugzilla.gnome.org/show_bug.cgi?id=763712
parent bd46de18
......@@ -36,11 +36,6 @@ struct _PhotosShareDialog
PhotosBaseItem *item;
};
struct _PhotosShareDialogClass
{
GtkDialogClass parent_class;
};
enum
{
PROP_0,
......
......@@ -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);
......
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