[anjuta/gnome-2-30] language-support-js: Load/Unload the plugin properly when a .js file is open



commit 40f8a65a76edf34bd5210f4de83426580da6f72d
Author: Johannes Schmid <jhs gnome org>
Date:   Thu May 6 13:34:45 2010 +0200

    language-support-js: Load/Unload the plugin properly when a .js file is open
    
    This fixes bgo#617734  - Aborts when working on project with JavaScript files

 plugins/language-support-js/Makefile.am            |    5 +++--
 .../js-support-plugin.plugin.in                    |   11 +++++++++++
 .../js_support_plugin.plugin.in                    |    7 -------
 3 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/plugins/language-support-js/Makefile.am b/plugins/language-support-js/Makefile.am
index 1977d42..233b8c4 100644
--- a/plugins/language-support-js/Makefile.am
+++ b/plugins/language-support-js/Makefile.am
@@ -13,7 +13,7 @@ js_support_plugin_pixmapsdir = $(anjuta_image_dir)
 js_support_plugin_pixmaps_DATA = js_support_plugin.png
 
 # Plugin description file
-plugin_in_files = js_support_plugin.plugin.in
+plugin_in_files = js-support-plugin.plugin.in
 %.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
 
 js_support_plugin_plugindir = $(anjuta_plugin_dir)
@@ -41,7 +41,8 @@ AM_CPPFLAGS = \
 	$(LIBANJUTA_CFLAGS) \
 	-DPACKAGE_SRC_DIR=\"$(srcdir)\" \
 	-DGIR_PATH=\"$(girdir)\" \
-	-DGJS_PATH=\"$(gjsdir)\"
+	-DGJS_PATH=\"$(gjsdir)\" \
+	-DG_LOG_DOMAIN=\"language-support-js\"
 
 # Where to install the plugin
 plugindir = $(anjuta_plugin_dir)
diff --git a/plugins/language-support-js/js-support-plugin.plugin.in b/plugins/language-support-js/js-support-plugin.plugin.in
new file mode 100644
index 0000000..7cbc5db
--- /dev/null
+++ b/plugins/language-support-js/js-support-plugin.plugin.in
@@ -0,0 +1,11 @@
+[Anjuta Plugin]
+Location=js-support-plugin:JSLang
+Icon=js_support_plugin.png
+_Name=JS Support Plugin
+_Description=JavaScript Support Plugin
+Interfaces=IAnjutaLanguageSupport
+UserActivatable=no
+
+[Language Support]
+Languages=JavaScript
+MimeTypes=application/javascript
\ No newline at end of file



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