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/gtkfilechooserbutton.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/gtkfilechooserbutton.c')
-rw-r--r-- | gtk/gtkfilechooserbutton.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 9a011310b0..62fce5a388 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -247,9 +247,7 @@ static gboolean gtk_file_chooser_button_remove_shortcut_folder (GtkFileChooser GError **error); /* GObject Functions */ -static GObject *gtk_file_chooser_button_constructor (GType type, - guint n_params, - GObjectConstructParam *params); +static void gtk_file_chooser_button_constructed (GObject *object); static void gtk_file_chooser_button_set_property (GObject *object, guint param_id, const GValue *value, @@ -369,7 +367,7 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class) gobject_class = G_OBJECT_CLASS (class); widget_class = GTK_WIDGET_CLASS (class); - gobject_class->constructor = gtk_file_chooser_button_constructor; + gobject_class->constructed = gtk_file_chooser_button_constructed; gobject_class->set_property = gtk_file_chooser_button_set_property; gobject_class->get_property = gtk_file_chooser_button_get_property; gobject_class->finalize = gtk_file_chooser_button_finalize; @@ -780,21 +778,14 @@ gtk_file_chooser_button_remove_shortcut_folder (GtkFileChooser *chooser, * GObject Functions * * ******************* */ -static GObject * -gtk_file_chooser_button_constructor (GType type, - guint n_params, - GObjectConstructParam *params) +static void +gtk_file_chooser_button_constructed (GObject *object) { - GObject *object; - GtkFileChooserButton *button; - GtkFileChooserButtonPrivate *priv; + GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (object); + GtkFileChooserButtonPrivate *priv = button->priv; GSList *list; - object = G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->constructor (type, - n_params, - params); - button = GTK_FILE_CHOOSER_BUTTON (object); - priv = button->priv; + G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->constructed (object); if (!priv->dialog) { @@ -877,8 +868,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS update_label_and_image (button); update_combo_box (button); - - return object; } static void |