diff options
Diffstat (limited to 'widgets/menus/gal-view-new-dialog.c')
-rw-r--r-- | widgets/menus/gal-view-new-dialog.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/widgets/menus/gal-view-new-dialog.c b/widgets/menus/gal-view-new-dialog.c index c41ce03123..49c96d4c2c 100644 --- a/widgets/menus/gal-view-new-dialog.c +++ b/widgets/menus/gal-view-new-dialog.c @@ -40,9 +40,6 @@ static void gal_view_new_dialog_set_property (GObject *object, guint prop_id, co static void gal_view_new_dialog_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); static void gal_view_new_dialog_dispose (GObject *object); -static GtkDialogClass *parent_class = NULL; -#define PARENT_TYPE GTK_TYPE_DIALOG - /* The arguments we take */ enum { PROP_0, @@ -50,10 +47,7 @@ enum { PROP_FACTORY }; -E_MAKE_TYPE(gal_view_new_dialog, "GalViewNewDialog", - GalViewNewDialog, - gal_view_new_dialog_class_init, - gal_view_new_dialog_init, PARENT_TYPE) +G_DEFINE_TYPE (GalViewNewDialog, gal_view_new_dialog, GTK_TYPE_DIALOG) static void gal_view_new_dialog_class_init (GalViewNewDialogClass *klass) @@ -62,8 +56,6 @@ gal_view_new_dialog_class_init (GalViewNewDialogClass *klass) object_class = (GObjectClass*) klass; - parent_class = g_type_class_ref (PARENT_TYPE); - object_class->set_property = gal_view_new_dialog_set_property; object_class->get_property = gal_view_new_dialog_get_property; object_class->dispose = gal_view_new_dialog_dispose; @@ -127,8 +119,8 @@ gal_view_new_dialog_dispose (GObject *object) g_object_unref(gal_view_new_dialog->gui); gal_view_new_dialog->gui = NULL; - if (G_OBJECT_CLASS (parent_class)->dispose) - (* G_OBJECT_CLASS (parent_class)->dispose) (object); + if (G_OBJECT_CLASS (gal_view_new_dialog_parent_class)->dispose) + (* G_OBJECT_CLASS (gal_view_new_dialog_parent_class)->dispose) (object); } GtkWidget* |