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

language-support-js: Use constant for schema

parent b2b63bdb
...@@ -75,7 +75,7 @@ js_support_plugin_activate (AnjutaPlugin *plugin) ...@@ -75,7 +75,7 @@ js_support_plugin_activate (AnjutaPlugin *plugin)
on_value_removed_current_editor, on_value_removed_current_editor,
plugin); plugin);
js_support_plugin->prefs = g_settings_new ("org.gnome.anjuta.js"); js_support_plugin->prefs = g_settings_new (JAVASCRIPT_SUPPORT_SCHEMA);
return TRUE; return TRUE;
} }
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include "database-symbol.h" #include "database-symbol.h"
#define JAVASCRIPT_SUPPORT_SCHEMA "org.gnome.anjuta.js"
typedef struct _JSLang JSLang; typedef struct _JSLang JSLang;
typedef struct _JSLangClass JSLangClass; typedef struct _JSLangClass JSLangClass;
......
...@@ -35,7 +35,7 @@ get_gjs_path () ...@@ -35,7 +35,7 @@ get_gjs_path ()
JSLang* plugin = (JSLang*)getPlugin (); JSLang* plugin = (JSLang*)getPlugin ();
if (!plugin->prefs) 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); gchar *path = g_settings_get_string (plugin->prefs, GJS_DIR_KEY);
if (!path || strlen (path) < 1) if (!path || strlen (path) < 1)
......
Supports Markdown
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