Builder/AddPropertyPopup.js
authorAlan Knowles <alan@akkbhome.com>
Sat, 15 May 2010 13:24:19 +0000 (21:24 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sat, 15 May 2010 13:24:19 +0000 (21:24 +0800)
Builder/AddPropertyPopup.js

index ee79536..7376f66 100644 (file)
@@ -17,11 +17,9 @@ AddPropertyPopup = new XObject({
      
     items :  [
         {
-            
-            
             xtype : Gtk.MenuItem,
             pack : [ 'append' ],
-            label : 'Add "pack"',
+            label : 'Gtk - Add "pack"',
             tooltip_markup : "Set what type of packing is to be used.",
             listeners : {
                 activate : function () {
@@ -36,6 +34,24 @@ AddPropertyPopup = new XObject({
                 }
             }
         },
+        {
+            xtype : Gtk.MenuItem,
+            pack : [ 'append' ],
+            label : 'Gtk - Add "init"',
+            tooltip_markup : "Set what type of packing is to be used.",
+            listeners : {
+                activate : function () {
+                    var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
+                    LeftPanel.get('model').add( {
+                        key : '|init', 
+                        type : 'function',
+                        val : 'add',
+                        skel  : "function() {\n    XObject.prototype.init.call(this);\n}\n",
+                        etype : 'props'
+                    }) //, skel);
+                }
+            }
+        },
     
        
         {