summaryrefslogtreecommitdiff
path: root/peas-demo
diff options
context:
space:
mode:
authorGarrett Regier <garrettregier@gmail.com>2013-11-12 23:56:39 -0800
committerGarrett Regier <garrettregier@gmail.com>2013-11-13 01:06:40 -0800
commit730edb65d6da0ebd0bd7065aeb9435b31d304b08 (patch)
treec54f3981d830352ce0811ac32c8ffd1524871191 /peas-demo
parent85960307ff553a4c81c57e98fce141d1ad2f985a (diff)
downloadlibpeas-730edb65d6da0ebd0bd7065aeb9435b31d304b08.tar.gz
Remove support for gjs-based Javascript plugins
There have been changes to the gjs bindings and as the issue has only recently been noticed it is assumed that support for them is not highly desired. https://bugzilla.gnome.org/show_bug.cgi?id=711356
Diffstat (limited to 'peas-demo')
-rw-r--r--peas-demo/peas-demo.c1
-rw-r--r--peas-demo/plugins/Makefile.am4
-rw-r--r--peas-demo/plugins/gjshello/Makefile.am7
-rw-r--r--peas-demo/plugins/gjshello/gjshello.js36
-rw-r--r--peas-demo/plugins/gjshello/gjshello.plugin8
5 files changed, 0 insertions, 56 deletions
diff --git a/peas-demo/peas-demo.c b/peas-demo/peas-demo.c
index 50c6a0f..d01031d 100644
--- a/peas-demo/peas-demo.c
+++ b/peas-demo/peas-demo.c
@@ -124,7 +124,6 @@ main (int argc,
peas_engine_add_search_path (engine, plugin_dir, plugin_dir);
g_free (plugin_dir);
- peas_engine_enable_loader (engine, "gjs");
peas_engine_enable_loader (engine, "python3");
peas_engine_enable_loader (engine, "seed");
diff --git a/peas-demo/plugins/Makefile.am b/peas-demo/plugins/Makefile.am
index d9ea866..5aa1cf4 100644
--- a/peas-demo/plugins/Makefile.am
+++ b/peas-demo/plugins/Makefile.am
@@ -1,9 +1,5 @@
SUBDIRS = helloworld secondtime
-if ENABLE_GJS
-SUBDIRS += gjshello
-endif
-
if ENABLE_PYTHON3
SUBDIRS += pythonhello
endif
diff --git a/peas-demo/plugins/gjshello/Makefile.am b/peas-demo/plugins/gjshello/Makefile.am
deleted file mode 100644
index 1a688da..0000000
--- a/peas-demo/plugins/gjshello/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-plugindir = $(libdir)/peas-demo/plugins/gjshello
-
-plugin_DATA = \
- gjshello.js \
- gjshello.plugin
-
-EXTRA_DIST = $(plugin_DATA)
diff --git a/peas-demo/plugins/gjshello/gjshello.js b/peas-demo/plugins/gjshello/gjshello.js
deleted file mode 100644
index ede389f..0000000
--- a/peas-demo/plugins/gjshello/gjshello.js
+++ /dev/null
@@ -1,36 +0,0 @@
-const Gtk = imports.gi.Gtk;
-
-var LABEL_STRING = "GJS Also Says Hello!";
-
-print("LABEL_STRING=" + LABEL_STRING);
-
-function activatable_extension() {
-}
-
-activatable_extension.prototype = {
- activate: function() {
- print("GJSHelloPlugin.activate");
- this.object._gjshello_label = new Gtk.Label({ label: LABEL_STRING });
- this.object._gjshello_label.show();
- this.object.get_child().add(this.object._gjshello_label);
- },
- deactivate: function() {
- print("GJSHelloPlugin.deactivate");
- this.object.get_child().remove(this.object._gjshello_label);
- this.object._gjshello_label.destroy();
- },
- update_state: function() {
- print("GJSHelloPlugin.update_state");
- }
-};
-
-function configurable_extension() {
- this.create_configure_widget = function () {
- return new Gtk.Label({ label: "Example of configuration dialog for a GJS plugin" });
- };
-};
-
-var extensions = {
- 'PeasActivatable': activatable_extension,
- 'PeasGtkConfigurable': configurable_extension,
-};
diff --git a/peas-demo/plugins/gjshello/gjshello.plugin b/peas-demo/plugins/gjshello/gjshello.plugin
deleted file mode 100644
index 9a1a0a5..0000000
--- a/peas-demo/plugins/gjshello/gjshello.plugin
+++ /dev/null
@@ -1,8 +0,0 @@
-[Plugin]
-Module=gjshello
-Loader=gjs
-Name=GJS Also Says Hello
-Description=Inserts a box containing "GJS Also Says Hello" in every windows.
-Authors=Steve Frécinaux <code@istique.net>
-Copyright=Copyright © 2009 Steve Frécinaux
-Website=http://code.istique.net/