[epiphany] EphyDownloadWidget: Use g_object_class_install_properties.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyDownloadWidget: Use g_object_class_install_properties.
- Date: Wed, 16 Dec 2015 13:09:40 +0000 (UTC)
commit 1f43e26b03cd508b1c5e1c5353bd141176d00124
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 12 19:37:18 2015 +0100
EphyDownloadWidget: Use g_object_class_install_properties.
https://bugzilla.gnome.org/show_bug.cgi?id=759401
lib/widgets/ephy-download-widget.c | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c
index c9a4d90..c9cc59b 100644
--- a/lib/widgets/ephy-download-widget.c
+++ b/lib/widgets/ephy-download-widget.c
@@ -50,9 +50,12 @@ struct _EphyDownloadWidgetPrivate
enum
{
PROP_0,
- PROP_DOWNLOAD
+ PROP_DOWNLOAD,
+ LAST_PROP
};
+static GParamSpec *obj_properties[LAST_PROP];
+
static char *
get_destination_basename_from_download (EphyDownload *ephy_download)
{
@@ -464,16 +467,14 @@ ephy_download_widget_class_init (EphyDownloadWidgetClass *klass)
*
* The EphyDownload that this widget is showing.
*/
- g_object_class_install_property (object_class, PROP_DOWNLOAD,
- g_param_spec_object ("download",
- "An EphyDownload object",
- "The EphyDownload shown by this widget",
- G_TYPE_OBJECT,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY |
- G_PARAM_STATIC_NAME |
- G_PARAM_STATIC_NICK |
- G_PARAM_STATIC_BLURB));
+ obj_properties[PROP_DOWNLOAD] =
+ g_param_spec_object ("download",
+ "An EphyDownload object",
+ "The EphyDownload shown by this widget",
+ G_TYPE_OBJECT,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
+
+ g_object_class_install_properties (object_class, LAST_PROP, obj_properties);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]