[gnome-builder/wip/libide] libide: add script-manager and search-engine properties to IdeContext
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add script-manager and search-engine properties to IdeContext
- Date: Mon, 16 Feb 2015 20:17:30 +0000 (UTC)
commit efd6589d566f3bb1ed190325d76e7d4ef4e7d561
Author: Christian Hergert <christian hergert me>
Date: Mon Feb 16 12:17:10 2015 -0800
libide: add script-manager and search-engine properties to IdeContext
libide/ide-context.c | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index 11b208a..7673c7c 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -67,6 +67,8 @@ enum {
PROP_DEVICE_MANAGER,
PROP_PROJECT_FILE,
PROP_ROOT_BUILD_DIR,
+ PROP_SCRIPT_MANAGER,
+ PROP_SEARCH_ENGINE,
PROP_VCS,
PROP_UNSAVED_FILES,
LAST_PROP
@@ -473,6 +475,14 @@ ide_context_get_property (GObject *object,
g_value_set_string (value, ide_context_get_root_build_dir (self));
break;
+ case PROP_SCRIPT_MANAGER:
+ g_value_set_object (value, ide_context_get_script_manager (self));
+ break;
+
+ case PROP_SEARCH_ENGINE:
+ g_value_set_object (value, ide_context_get_search_engine (self));
+ break;
+
case PROP_UNSAVED_FILES:
g_value_set_object (value, ide_context_get_unsaved_files (self));
break;
@@ -566,6 +576,24 @@ ide_context_class_init (IdeContextClass *klass)
g_object_class_install_property (object_class, PROP_ROOT_BUILD_DIR,
gParamSpecs [PROP_ROOT_BUILD_DIR]);
+ gParamSpecs [PROP_SCRIPT_MANAGER] =
+ g_param_spec_object ("script-manager",
+ _("Script Manager"),
+ _("The script manager for the context."),
+ IDE_TYPE_SCRIPT_MANAGER,
+ (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property (object_class, PROP_SCRIPT_MANAGER,
+ gParamSpecs [PROP_SCRIPT_MANAGER]);
+
+ gParamSpecs [PROP_SEARCH_ENGINE] =
+ g_param_spec_object ("search-engine",
+ _("Search Engine"),
+ _("The search engine for the context."),
+ IDE_TYPE_SEARCH_ENGINE,
+ (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property (object_class, PROP_SEARCH_ENGINE,
+ gParamSpecs [PROP_SEARCH_ENGINE]);
+
gParamSpecs [PROP_UNSAVED_FILES] =
g_param_spec_object ("unsaved-files",
_("Unsaved Files"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]