[gnome-builder] prefs: use invalid schema key for plugin toggle on builtin



commit c00583a146e221ca4e286040e6da3ad109a28bb7
Author: Christian Hergert <chergert redhat com>
Date:   Sat Nov 7 01:15:48 2015 -0800

    prefs: use invalid schema key for plugin toggle on builtin
    
    We need to make these unloadable at some point anyway.

 libide/preferences/ide-preferences-builtin.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libide/preferences/ide-preferences-builtin.c b/libide/preferences/ide-preferences-builtin.c
index 90d0b0f..258f029 100644
--- a/libide/preferences/ide-preferences-builtin.c
+++ b/libide/preferences/ide-preferences-builtin.c
@@ -46,8 +46,9 @@ ide_preferences_builtin_register_plugins (IdePreferences *preferences)
       name = peas_plugin_info_get_name (plugin_info);
       desc = peas_plugin_info_get_description (plugin_info);
 
-      /* TODO: support custom path (and use right schema/key) */
-      ide_preferences_add_switch (preferences, "plugins", "plugins", "org.gnome.builder.editor", 
"show-line-numbers", NULL, name, desc, NULL, i);
+      /* TODO: come up with better options here */
+      if (peas_plugin_info_is_builtin (plugin_info))
+        ide_preferences_add_switch (preferences, "plugins", "plugins", "org.gnome.builder.plugin", 
"__unavailable__", NULL, name, desc, NULL, i);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]