[gnome-builder] settings: use enabled instead of disabled for extension-types
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] settings: use enabled instead of disabled for extension-types
- Date: Thu, 16 Jul 2015 21:10:33 +0000 (UTC)
commit 9ba53226a566103e6fa875b9e1e5d46fbbc3a685
Author: Christian Hergert <christian hergert me>
Date: Wed Jul 15 21:54:03 2015 -0700
settings: use enabled instead of disabled for extension-types
This makes things easier like binding to GtkSwitch using our preferences
abstraction.
.../org.gnome.builder.extension-type.gschema.xml | 8 ++++----
libide/ide-extension-util.c | 5 +----
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/data/gsettings/org.gnome.builder.extension-type.gschema.xml
b/data/gsettings/org.gnome.builder.extension-type.gschema.xml
index e28bb0c..b80271a 100644
--- a/data/gsettings/org.gnome.builder.extension-type.gschema.xml
+++ b/data/gsettings/org.gnome.builder.extension-type.gschema.xml
@@ -1,9 +1,9 @@
<schemalist>
<schema id="org.gnome.builder.extension-type" gettext-domain="gnome-builder">
- <key name="disabled" type="b">
- <default>false</default>
- <summary>Disabled</summary>
- <description>If the type within the extension is disabled.</description>
+ <key name="enabled" type="b">
+ <default>true</default>
+ <summary>Enabled</summary>
+ <description>If the type within the extension is enabled.</description>
</key>
</schema>
</schemalist>
diff --git a/libide/ide-extension-util.c b/libide/ide-extension-util.c
index b04ca73..77b1b90 100644
--- a/libide/ide-extension-util.c
+++ b/libide/ide-extension-util.c
@@ -90,8 +90,5 @@ ide_extension_util_can_use_plugin (PeasEngine *engine,
peas_plugin_info_get_module_name (plugin_info),
g_type_name (interface_type));
settings = g_settings_new_with_path ("org.gnome.builder.extension-type", path);
- if (g_settings_get_boolean (settings, "disabled"))
- return FALSE;
-
- return TRUE;
+ return g_settings_get_boolean (settings, "enabled");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]