[gnome-builder/wip/settings] settings: add is-global property and use install_properties
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/settings] settings: add is-global property and use install_properties
- Date: Sun, 3 May 2015 20:49:24 +0000 (UTC)
commit 7267ce6bffa059fe94fffa2b05dad9b22bd04e42
Author: Christian Hergert <christian hergert me>
Date: Sun May 3 13:49:09 2015 -0700
settings: add is-global property and use install_properties
libide/ide-settings.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-settings.c b/libide/ide-settings.c
index 2f7399a..10543ed 100644
--- a/libide/ide-settings.c
+++ b/libide/ide-settings.c
@@ -256,14 +256,19 @@ ide_settings_class_init (IdeSettingsClass *klass)
object_class->get_property = ide_settings_get_property;
object_class->set_property = ide_settings_set_property;
+ gParamSpecs [PROP_IS_GLOBAL] =
+ g_param_spec_boolean ("is-global",
+ _("Is Global"),
+ _("If project settings should be ignored."),
+ FALSE,
+ (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
gParamSpecs [PROP_RELATIVE_PATH] =
g_param_spec_string ("relative-path",
_("Relative Path"),
_("Relative Path"),
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_RELATIVE_PATH,
- gParamSpecs [PROP_RELATIVE_PATH]);
gParamSpecs [PROP_SCHEMA_ID] =
g_param_spec_string ("schema-id",
@@ -271,7 +276,8 @@ ide_settings_class_init (IdeSettingsClass *klass)
_("Schema Id"),
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_SCHEMA_ID, gParamSpecs [PROP_SCHEMA_ID]);
+
+ g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
gSignals [CHANGED] =
g_signal_new_class_handler ("changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]