summaryrefslogtreecommitdiff
path: root/mateweather/mateweather-dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'mateweather/mateweather-dialog.h')
-rw-r--r--mateweather/mateweather-dialog.h34
1 files changed, 6 insertions, 28 deletions
diff --git a/mateweather/mateweather-dialog.h b/mateweather/mateweather-dialog.h
index 69aa734d..0eaf0b50 100644
--- a/mateweather/mateweather-dialog.h
+++ b/mateweather/mateweather-dialog.h
@@ -21,34 +21,12 @@
G_BEGIN_DECLS
-#define MATEWEATHER_TYPE_DIALOG (mateweather_dialog_get_type ())
-#define MATEWEATHER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATEWEATHER_TYPE_DIALOG, MateWeatherDialog))
-#define MATEWEATHER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATEWEATHER_TYPE_DIALOG, MateWeatherDialogClass))
-#define MATEWEATHER_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATEWEATHER_TYPE_DIALOG))
-#define MATEWEATHER_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATEWEATHER_TYPE_DIALOG))
-#define MATEWEATHER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATEWEATHER_TYPE_DIALOG, MateWeatherDialogClass))
-
-typedef struct _MateWeatherDialog MateWeatherDialog;
-typedef struct _MateWeatherDialogPrivate MateWeatherDialogPrivate;
-typedef struct _MateWeatherDialogClass MateWeatherDialogClass;
-
-struct _MateWeatherDialog
-{
- GtkDialog parent;
-
- /* private */
- MateWeatherDialogPrivate *priv;
-};
-
-
-struct _MateWeatherDialogClass
-{
- GtkDialogClass parent_class;
-};
-
-GType mateweather_dialog_get_type (void);
-GtkWidget *mateweather_dialog_new (MateWeatherApplet *applet);
-void mateweather_dialog_update (MateWeatherDialog *dialog);
+#define MATEWEATHER_TYPE_DIALOG mateweather_dialog_get_type ()
+G_DECLARE_FINAL_TYPE (MateWeatherDialog, mateweather_dialog,
+ MATEWEATHER, DIALOG, GtkDialog)
+
+GtkWidget *mateweather_dialog_new (MateWeatherApplet *applet);
+void mateweather_dialog_update (MateWeatherDialog *dialog);
G_END_DECLS