diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-09-17 15:11:53 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-09-17 15:11:53 -0500 |
commit | 613c326844e36c48a5b869f61ca71a8cc719dc29 (patch) | |
tree | e2a98a17150d81cee9db305573f84883e2ae32bb | |
parent | bf7cb386bcb67923dc004e98528a5792ef2e8fd6 (diff) | |
download | epiphany-613c326844e36c48a5b869f61ca71a8cc719dc29.tar.gz |
file-chooser: use constructed function
-rw-r--r-- | lib/widgets/ephy-file-chooser.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/widgets/ephy-file-chooser.c b/lib/widgets/ephy-file-chooser.c index 1f2e71443..d1a4badb2 100644 --- a/lib/widgets/ephy-file-chooser.c +++ b/lib/widgets/ephy-file-chooser.c @@ -46,24 +46,17 @@ ephy_file_chooser_init (EphyFileChooser *dialog) { } -static GObject * -ephy_file_chooser_constructor (GType type, - guint n_construct_properties, - GObjectConstructParam *construct_params) +static void +ephy_file_chooser_constructed (GObject *object) { - GObject *object; char *downloads_dir; - object = G_OBJECT_CLASS (ephy_file_chooser_parent_class)->constructor (type, n_construct_properties, - construct_params); + G_OBJECT_CLASS (ephy_file_chooser_parent_class)->constructed (object); downloads_dir = ephy_file_get_downloads_dir (); - gtk_file_chooser_add_shortcut_folder - (GTK_FILE_CHOOSER (object), downloads_dir, NULL); + gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (object), downloads_dir, NULL); g_free (downloads_dir); - - return object; } GtkFileFilter * @@ -127,7 +120,7 @@ ephy_file_chooser_class_init (EphyFileChooserClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - object_class->constructor = ephy_file_chooser_constructor; + object_class->constructed = ephy_file_chooser_constructed; } static void |