[epiphany/wip/modern_gobject] EphyFindToolbar: Use g_object_class_install_properties
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/modern_gobject] EphyFindToolbar: Use g_object_class_install_properties
- Date: Sat, 19 Sep 2015 18:24:10 +0000 (UTC)
commit dd9a271eb1e5d85b1088cb076137da0282b477a7
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Sep 19 13:23:28 2015 -0500
EphyFindToolbar: Use g_object_class_install_properties
embed/ephy-find-toolbar.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/embed/ephy-find-toolbar.c b/embed/ephy-find-toolbar.c
index e4273cb..67c1f8b 100644
--- a/embed/ephy-find-toolbar.c
+++ b/embed/ephy-find-toolbar.c
@@ -57,9 +57,12 @@ G_DEFINE_TYPE (EphyFindToolbar, ephy_find_toolbar, GTK_TYPE_SEARCH_BAR)
enum
{
PROP_0,
- PROP_WEB_VIEW
+ PROP_WEB_VIEW,
+ LAST_PROP
};
+static GParamSpec *obj_properties[LAST_PROP];
+
enum
{
NEXT,
@@ -575,14 +578,14 @@ ephy_find_toolbar_class_init (EphyFindToolbarClass *klass)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
- g_object_class_install_property
- (object_class,
- PROP_WEB_VIEW,
+ obj_properties[PROP_WEB_VIEW] =
g_param_spec_object ("web-view",
"WebView",
"Parent web view",
WEBKIT_TYPE_WEB_VIEW,
- (GParamFlags) (G_PARAM_WRITABLE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_CONSTRUCT_ONLY)));
+ G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
+
+ g_object_class_install_properties (object_class, LAST_PROP, obj_properties);
}
/* public functions */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]