[epiphany] EphyCombinedStopReloadAction: Use g_object_class_install_properties.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyCombinedStopReloadAction: Use g_object_class_install_properties.
- Date: Wed, 16 Dec 2015 13:08:19 +0000 (UTC)
commit 627cfa1025c36a4c7fe7737362bed506d3cb3c11
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Dec 11 01:54:06 2015 +0100
EphyCombinedStopReloadAction: Use g_object_class_install_properties.
https://bugzilla.gnome.org/show_bug.cgi?id=759401
src/ephy-combined-stop-reload-action.c | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/ephy-combined-stop-reload-action.c b/src/ephy-combined-stop-reload-action.c
index 1d8e28e..3184101 100644
--- a/src/ephy-combined-stop-reload-action.c
+++ b/src/ephy-combined-stop-reload-action.c
@@ -51,9 +51,12 @@ typedef enum {
enum {
PROP_0,
- PROP_LOADING
+ PROP_LOADING,
+ LAST_PROP
};
+static GParamSpec *obj_properties[LAST_PROP];
+
void
ephy_combined_stop_reload_action_set_loading (EphyCombinedStopReloadAction *action,
gboolean loading)
@@ -133,11 +136,14 @@ ephy_combined_stop_reload_action_class_init (EphyCombinedStopReloadActionClass *
object_class->get_property = ephy_combined_stop_reload_action_get_property;
object_class->set_property = ephy_combined_stop_reload_action_set_property;
- g_object_class_install_property (object_class,
- PROP_LOADING,
- g_param_spec_boolean ("loading", NULL, NULL,
- FALSE,
- G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
+ obj_properties[PROP_LOADING] =
+ g_param_spec_boolean ("loading",
+ NULL,
+ NULL,
+ FALSE,
+ G_PARAM_READWRITE | 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]