[epiphany] file-chooser: use constructed function
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] file-chooser: use constructed function
- Date: Sat, 17 Sep 2016 20:17:12 +0000 (UTC)
commit 613c326844e36c48a5b869f61ca71a8cc719dc29
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Sep 17 15:11:53 2016 -0500
file-chooser: use constructed function
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 1f2e714..d1a4bad 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]