Commit 9ad2b4f5 authored by Jens Georg's avatar Jens Georg Committed by Johannes Schmid

language-support-js: Use constant for schema

parent b2b63bdb
......@@ -75,7 +75,7 @@ js_support_plugin_activate (AnjutaPlugin *plugin)
on_value_removed_current_editor,
plugin);
js_support_plugin->prefs = g_settings_new ("org.gnome.anjuta.js");
js_support_plugin->prefs = g_settings_new (JAVASCRIPT_SUPPORT_SCHEMA);
return TRUE;
}
......
......@@ -24,6 +24,8 @@
#include "database-symbol.h"
#define JAVASCRIPT_SUPPORT_SCHEMA "org.gnome.anjuta.js"
typedef struct _JSLang JSLang;
typedef struct _JSLangClass JSLangClass;
......
......@@ -35,7 +35,7 @@ get_gjs_path ()
JSLang* plugin = (JSLang*)getPlugin ();
if (!plugin->prefs)
plugin->prefs = g_settings_new ("org.gnome.anjuta.js");
plugin->prefs = g_settings_new (JAVASCRIPT_SUPPORT_SCHEMA);
gchar *path = g_settings_get_string (plugin->prefs, GJS_DIR_KEY);
if (!path || strlen (path) < 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment