[epiphany] EphyBookmarksEditor: Use g_object_class_install_properties.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyBookmarksEditor: Use g_object_class_install_properties.
- Date: Wed, 16 Dec 2015 13:08:54 +0000 (UTC)
commit d1fe748bc48e3ca4e802c70379e6ef13da8e1ddb
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 12 15:16:00 2015 +0100
EphyBookmarksEditor: Use g_object_class_install_properties.
https://bugzilla.gnome.org/show_bug.cgi?id=759401
src/bookmarks/ephy-bookmarks-editor.c | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 4242149..904527a 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -142,9 +142,12 @@ struct _EphyBookmarksEditorPrivate
enum
{
PROP_0,
- PROP_BOOKMARKS
+ PROP_BOOKMARKS,
+ LAST_PROP
};
+static GParamSpec *obj_properties[LAST_PROP];
+
static const GtkActionEntry ephy_bookmark_popup_entries [] = {
/* Toplevel */
{ "File", NULL, N_("_File") },
@@ -1006,13 +1009,14 @@ ephy_bookmarks_editor_class_init (EphyBookmarksEditorClass *klass)
widget_class->show = ephy_bookmarks_editor_show;
- g_object_class_install_property (object_class,
- PROP_BOOKMARKS,
- g_param_spec_object ("bookmarks",
- "Bookmarks set",
- "Bookmarks set",
- EPHY_TYPE_BOOKMARKS,
- G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_CONSTRUCT_ONLY));
+ obj_properties[PROP_BOOKMARKS] =
+ g_param_spec_object ("bookmarks",
+ "Bookmarks set",
+ "Bookmarks set",
+ EPHY_TYPE_BOOKMARKS,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
+
+ g_object_class_install_properties (object_class, LAST_PROP, obj_properties);
g_type_class_add_private (object_class, sizeof(EphyBookmarksEditorPrivate));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]