diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-06-26 18:22:42 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-06-26 19:06:43 -0400 |
commit | 9c37b3de7466a22d4c784657a86c522e2a4f118a (patch) | |
tree | 8efe1f75cef57d9af8484324dca0c35714a1ca16 /gtk/gtkdialog.c | |
parent | 66492678b5a3043f4acd77a6a41405bc4f8097b3 (diff) | |
download | gtk+-9c37b3de7466a22d4c784657a86c522e2a4f118a.tar.gz |
gtk: Don't use GObjectClass.constructor
Use the newer constructed instead, which has a fast path in GObject.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 4ab47fb4ab..5a36d73d33 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -522,21 +522,13 @@ add_action_widgets (GtkDialog *dialog) } } -static GObject * -gtk_dialog_constructor (GType type, - guint n_construct_properties, - GObjectConstructParam *construct_params) +static void +gtk_dialog_constructed (GObject *object) { - GObject *object; - GtkDialog *dialog; - GtkDialogPrivate *priv; - - object = G_OBJECT_CLASS (gtk_dialog_parent_class)->constructor (type, - n_construct_properties, - construct_params); + GtkDialog *dialog = GTK_DIALOG (object); + GtkDialogPrivate *priv = dialog->priv; - dialog = GTK_DIALOG (object); - priv = dialog->priv; + G_OBJECT_CLASS (gtk_dialog_parent_class)->constructed (object); priv->constructed = TRUE; if (priv->use_header_bar == -1) @@ -544,8 +536,6 @@ gtk_dialog_constructor (GType type, add_action_widgets (dialog); apply_use_header_bar (dialog); - - return object; } static void @@ -568,7 +558,7 @@ gtk_dialog_class_init (GtkDialogClass *class) gobject_class = G_OBJECT_CLASS (class); widget_class = GTK_WIDGET_CLASS (class); - gobject_class->constructor = gtk_dialog_constructor; + gobject_class->constructed = gtk_dialog_constructed; gobject_class->set_property = gtk_dialog_set_property; gobject_class->get_property = gtk_dialog_get_property; gobject_class->finalize = gtk_dialog_finalize; |