Builder/AddPropertyPopup.js
[app.Builder.js] / Builder / AddPropertyPopup.js
1 //<Script type="text/javascript">
2 Gtk = imports.gi.Gtk;
3 GLib = imports.gi.GLib;
4 GObject = imports.gi.GObject;
5
6 XObject = imports.XObject.XObject;
7 console = imports.console;
8  
9
10
11
12 AddPropertyPopup = new XObject({
13     
14         
15     xtype : Gtk.Menu,
16     
17      
18     items :  [
19         {
20             
21             
22             xtype : Gtk.MenuItem,
23             pack : [ 'append' ],
24             label : 'Add "pack"',
25             tooltip_markup : "Set what type of packing is to be used.",
26             listeners : {
27                 activate : function () {
28                  
29                 }
30             }
31         },
32     
33        
34         {
35             
36             
37             xtype : Gtk.MenuItem,
38             pack : [ 'append' ],
39             label : 'Add Function or Property',
40             listeners : {
41                 activate : function () {
42                     // popup with name.
43                 }
44             }
45             
46         },
47     ]
48 });