[epiphany] EphyHistoryWindow: Use g_object_class_install_properties.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyHistoryWindow: Use g_object_class_install_properties.
- Date: Wed, 16 Dec 2015 13:08:24 +0000 (UTC)
commit 253de7cb4d57000b44370dfcea4033ae76ff5727
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 12 13:43:52 2015 +0100
EphyHistoryWindow: Use g_object_class_install_properties.
https://bugzilla.gnome.org/show_bug.cgi?id=759401
src/ephy-history-window.c | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index b92b812..a35d688 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -76,8 +76,11 @@ enum
{
PROP_0,
PROP_HISTORY_SERVICE,
+ LAST_PROP
};
+static GParamSpec *obj_properties[LAST_PROP];
+
typedef enum
{
COLUMN_DATE,
@@ -701,15 +704,16 @@ ephy_history_window_class_init (EphyHistoryWindowClass *klass)
object_class->set_property = ephy_history_window_set_property;
object_class->get_property = ephy_history_window_get_property;
- object_class->dispose = ephy_history_window_dispose;
-
- g_object_class_install_property (object_class,
- PROP_HISTORY_SERVICE,
- g_param_spec_object ("history-service",
- "History service",
- "History Service",
- EPHY_TYPE_HISTORY_SERVICE,
- G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_CONSTRUCT_ONLY));
+ object_class->dispose = ephy_history_window_dispose;
+
+ obj_properties[PROP_HISTORY_SERVICE] =
+ g_param_spec_object ("history-service",
+ "History service",
+ "History Service",
+ EPHY_TYPE_HISTORY_SERVICE,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
+
+ g_object_class_install_properties (object_class, LAST_PROP, obj_properties);
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/epiphany/history-dialog.ui");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]