Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
anjuta
Commits
9ad2b4f5
Commit
9ad2b4f5
authored
Oct 31, 2010
by
Jens Georg
Committed by
Johannes Schmid
Nov 08, 2010
Browse files
language-support-js: Use constant for schema
parent
b2b63bdb
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/language-support-js/plugin.c
View file @
9ad2b4f5
...
@@ -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
;
}
}
...
...
plugins/language-support-js/plugin.h
View file @
9ad2b4f5
...
@@ -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
;
...
...
plugins/language-support-js/util.c
View file @
9ad2b4f5
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment