resources/RooUsage.txt
[app.Builder.js] / old-javascript / XObjectBase / GtkTreeSelection.js
1
2 //<Script type="Text/javascript">
3
4 XObject = imports.XObject.XObject
5  
6 GObject = imports.gi.GObject;
7
8 // tree view column.. should really have a better way to determin stuff..
9
10 GtkTreeSelection = XObject.define(
11     function(cfg)
12     {
13         // child only get's a listener...
14         XObject.call(this, cfg);
15         
16         // you can not actually ctor this..
17          
18         
19         
20     }, 
21     XObject,
22     {
23         pack: function(parent, item)
24         {
25             // do nothing... init has already made 'el'
26             
27         },
28         
29         
30         init : function(parent) 
31         {
32             
33             this.el = parent.el.get_selection();
34             
35             parent.selection = this; 
36              
37             if (typeof(this.config.mode) == 'undefined') {
38                 this.el.set_mode(this.config.mode );
39             }
40         }       
41              
42  
43          
44     }
45 ); 
46 /// make available configuration so builder know how to handle it..
47
48
49 GtkTreeSelection.config = {
50     mode   : {
51         type : 'Gtk.SelectionMode'
52     },
53     parents : [
54         'Gtk.TreeView'
55     ]
56 };
57
58