[libpeas/proxys: 25/25] WIP Add out args support in Seed plugins



commit 3e95c959f67d99e181d23af27de7bf2e635a2e3c
Author: Steve Frécinaux <code istique net>
Date:   Sun May 23 15:48:13 2010 +0200

    WIP Add out args support in Seed plugins
    
    Seed plugins can now have PeasUIConfigurable support.

 peas-demo/plugins/seedhello/seedhello.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/peas-demo/plugins/seedhello/seedhello.js b/peas-demo/plugins/seedhello/seedhello.js
index d19e6d7..d2303b9 100644
--- a/peas-demo/plugins/seedhello/seedhello.js
+++ b/peas-demo/plugins/seedhello/seedhello.js
@@ -22,6 +22,14 @@ activatable_extension = {
 };
 
 configurable_extension = {
+  create_configure_dialog: function () {
+    var dialog = Gtk.Dialog({ title: "Seedhello Config Dialog" });
+    var label = Gtk.Label({ label: "Example of configuration dialog for a Seed plugin" });
+
+    dialog.get_content_area().pack_start(label);
+    dialog.add_button(Gtk.STOCK_OK, 1);
+    return dialog;
+  }
 };
 
 extensions = {



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