summaryrefslogtreecommitdiff
path: root/src/prefs-dialog.h
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2016-02-27 16:58:28 -0600
committerMichael Catanzaro <mcatanzaro@igalia.com>2016-02-27 16:58:28 -0600
commitd7dbeef10f25192364ee3e972f1c82ca4a65d94e (patch)
tree7c438ab42b71935446113db104ca856e3d9e5ebc /src/prefs-dialog.h
parent1a451660bb6d3971ee1de7ffa43c5c1535db565c (diff)
downloadepiphany-d7dbeef10f25192364ee3e972f1c82ca4a65d94e.tar.gz
prefs-dialog: Use G_DECLARE_FINAL_TYPE
Diffstat (limited to 'src/prefs-dialog.h')
-rw-r--r--src/prefs-dialog.h26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/prefs-dialog.h b/src/prefs-dialog.h
index f8cee57f5..0a0943c2a 100644
--- a/src/prefs-dialog.h
+++ b/src/prefs-dialog.h
@@ -24,31 +24,9 @@
G_BEGIN_DECLS
-#define EPHY_TYPE_PREFS_DIALOG (prefs_dialog_get_type ())
-#define EPHY_PREFS_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_PREFS_DIALOG, PrefsDialog))
-#define EPHY_PREFS_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_PREFS_DIALOG, PrefsDialogClass))
-#define EPHY_IS_PREFS_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_PREFS_DIALOG))
-#define EPHY_IS_PREFS_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_PREFS_DIALOG))
-#define EPHY_PREFS_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_PREFS_DIALOG, PrefsDialogClass))
+#define EPHY_TYPE_PREFS_DIALOG (prefs_dialog_get_type ())
-typedef struct PrefsDialog PrefsDialog;
-typedef struct PrefsDialogClass PrefsDialogClass;
-typedef struct PrefsDialogPrivate PrefsDialogPrivate;
-
-struct PrefsDialog
-{
- GtkDialog parent;
-
- /*< private >*/
- PrefsDialogPrivate *priv;
-};
-
-struct PrefsDialogClass
-{
- GtkDialogClass parent_class;
-};
-
-GType prefs_dialog_get_type (void);
+G_DECLARE_FINAL_TYPE (PrefsDialog, prefs_dialog, EPHY, PREFS_DIALOG, GtkDialog)
G_END_DECLS