Clones.bjs
[gitlive] / Clones.vala
1 static Clones  _Clones;
2
3 public class Clones : Object
4 {
5     public Gtk.Dialog el;
6     private Clones  _this;
7
8     public static Clones singleton()
9     {
10         if (_Clones == null) {
11             _Clones= new Clones();
12         }
13         return _Clones;
14     }
15     public Xcls_Clones Clones;
16     public Xcls_reposView reposView;
17     public Xcls_reposStore reposStore;
18     public Xcls_tv_autocommit tv_autocommit;
19     public Xcls_cr_autocommit cr_autocommit;
20     public Xcls_tv_autopush tv_autopush;
21     public Xcls_cr_autopush cr_autopush;
22     public Xcls_tv_repo tv_repo;
23     public Xcls_tv_current_branch tv_current_branch;
24     public Xcls_tv_last_updated tv_last_updated;
25     public Xcls_tv_all_branches tv_all_branches;
26     public Xcls_ok_button ok_button;
27
28         // my vars (def)
29
30     // ctor
31     public Clones()
32     {
33         _this = this;
34         this.el = new Gtk.Dialog();
35
36         // my vars (dec)
37
38         // set gobject values
39         this.el.title = "Manage Clones";
40         this.el.border_width = 3;
41         this.el.default_height = 500;
42         this.el.default_width = 600;
43         this.el.deletable = true;
44         this.el.modal = true;
45         var child_0 = new Xcls_Clones( _this );
46         child_0.ref();
47         this.el.get_content_area().add (  child_0.el  );
48         var child_1 = new Xcls_ok_button( _this );
49         child_1.ref();
50         this.el.add_action_widget (  child_1.el , 1  );
51
52         //listeners
53         this.el.delete_event.connect( (self, event) => {
54             this.el.hide();
55             return true; 
56             //test  
57         });
58         this.el.response.connect( (self, response_id) =>  { 
59          
60                 this.el.hide();
61           
62         });
63     }
64
65     // user defined functions
66     public void show ()    {
67     
68         
69         this.el.set_deletable(false);
70         this.el.show_all();
71         // load clones..
72     //     this.get('/reposStore').load();
73         
74         //this.get('/ok_button').el.set_sensitive(false);
75         
76         // block until we return.
77     //    var run_ret = this.el.run();
78     //    if (run_ret < 1 ) {
79     //        return  "DONE";
80     //    }
81     //    print("RUN RETURN : " + run_ret);
82     //    return "DONE";
83         //print(JSON.stringify(this.get('bug').getValue()));
84        // return this.get('bug').getValue();
85         //this.success = c.success;
86     }
87     public class Xcls_Clones : Object
88     {
89         public Gtk.Box el;
90         private Clones  _this;
91
92
93             // my vars (def)
94
95         // ctor
96         public Xcls_Clones(Clones _owner )
97         {
98             _this = _owner;
99             _this.Clones = this;
100             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
101
102             // my vars (dec)
103
104             // set gobject values
105             var child_0 = new Xcls_Box3( _this );
106             child_0.ref();
107             this.el.pack_start (  child_0.el , false,false,0 );
108             var child_1 = new Xcls_ScrolledWindow9( _this );
109             child_1.ref();
110             this.el.pack_end (  child_1.el , true,true,0 );
111         }
112
113         // user defined functions
114     }
115     public class Xcls_Box3 : Object
116     {
117         public Gtk.Box el;
118         private Clones  _this;
119
120
121             // my vars (def)
122
123         // ctor
124         public Xcls_Box3(Clones _owner )
125         {
126             _this = _owner;
127             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
128
129             // my vars (dec)
130
131             // set gobject values
132             var child_0 = new Xcls_Button4( _this );
133             child_0.ref();
134             this.el.add (  child_0.el  );
135             var child_1 = new Xcls_Button5( _this );
136             child_1.ref();
137             this.el.add (  child_1.el  );
138             var child_2 = new Xcls_Button6( _this );
139             child_2.ref();
140             this.el.add (  child_2.el  );
141             var child_3 = new Xcls_Button7( _this );
142             child_3.ref();
143             this.el.add (  child_3.el  );
144             var child_4 = new Xcls_Button8( _this );
145             child_4.ref();
146             this.el.add (  child_4.el  );
147         }
148
149         // user defined functions
150     }
151     public class Xcls_Button4 : Object
152     {
153         public Gtk.Button el;
154         private Clones  _this;
155
156
157             // my vars (def)
158
159         // ctor
160         public Xcls_Button4(Clones _owner )
161         {
162             _this = _owner;
163             this.el = new Gtk.Button();
164
165             // my vars (dec)
166
167             // set gobject values
168             this.el.label = "Remotes / Clones";
169
170             //listeners
171             this.el.clicked.connect( () => {
172             
173             /*    var rv = this.get('/reposView');
174                 var rs = this.get('/reposStore');
175                 if (rv.el.get_selection().count_selected_rows() != 1) {
176                     //nothing?
177                     // error condition.
178                     return;
179                 }
180                 var Remotes =     imports.Remotes.Remotes;
181                 
182              
183                 var ret = {};       
184                 var s = rv.el.get_selection();
185                 var path = '';
186                 s.selected_foreach(function(model,p,iter) {
187                                                                 
188                    path = model.get_value(iter, 6).value.get_string();
189                  
190                 }); 
191             
192                 var repo = false;
193                 rs.repos.forEach(function(r) {
194                     if (r.repopath == path) {
195                         repo = r;
196                     
197                     }
198                 
199                 });
200                 Remotes.repo = repo;
201                 Remotes.el.set_transient_for(Clones.el);
202                 Clones.el.set_title("Manage Clones - " + repo.repopath);
203                 Remotes.show();
204                 Clones.el.set_title("Manage Clones");
205             
206               */   
207                 
208                  
209             
210                    
211                 
212                 
213             });
214         }
215
216         // user defined functions
217     }
218
219     public class Xcls_Button5 : Object
220     {
221         public Gtk.Button el;
222         private Clones  _this;
223
224
225             // my vars (def)
226
227         // ctor
228         public Xcls_Button5(Clones _owner )
229         {
230             _this = _owner;
231             this.el = new Gtk.Button();
232
233             // my vars (dec)
234
235             // set gobject values
236             this.el.label = "Branches";
237
238             //listeners
239             this.el.clicked.connect( () => {
240             /*
241                 var rv = this.get('/reposView');
242                 var rs = this.get('/reposStore');
243                 if (rv.el.get_selection().count_selected_rows() != 1) {
244                     //nothing?
245                     // error condition.
246                     return;
247                 }
248                 var Branches =     imports.Branches.Branches;
249                 
250              
251                 var ret = {};       
252                 var s = rv.el.get_selection();
253                 var path = '';
254                 s.selected_foreach(function(model,p,iter) {
255                                                                 
256                    path = model.get_value(iter, 6).value.get_string();
257                  
258                 }); 
259             
260                 var repo = false;
261                 rs.repos.forEach(function(r) {
262                     if (r.repopath == path) {
263                         repo = r;
264                     
265                     }
266                 
267                 });
268                 Branches.repo = repo;
269                 Branches.el.set_transient_for(Clones.el);
270                 Clones.el.set_title("Manage Clones - " + repo.repopath);
271                 Branches.show();
272                 Clones.el.set_title("Manage Clones");
273             
274                  
275                 
276                 
277                 
278             
279                    
280              */   
281                 
282             });
283         }
284
285         // user defined functions
286     }
287
288     public class Xcls_Button6 : Object
289     {
290         public Gtk.Button el;
291         private Clones  _this;
292
293
294             // my vars (def)
295
296         // ctor
297         public Xcls_Button6(Clones _owner )
298         {
299             _this = _owner;
300             this.el = new Gtk.Button();
301
302             // my vars (dec)
303
304             // set gobject values
305             this.el.label = "Merge";
306
307             //listeners
308             this.el.clicked.connect( () =>  {
309             /*
310                 var rv = this.get('/reposView');
311                 var rs = this.get('/reposStore');
312                 if (rv.el.get_selection().count_selected_rows() != 1) {
313                     //nothing?
314                     // error condition.
315                     return;
316                 }
317                 var Merger =     imports.Merger.Merger;
318                 
319              
320                 var ret = {};       
321                 var s = rv.el.get_selection();
322                 var path = '';
323                 s.selected_foreach(function(model,p,iter) {
324                                                                 
325                    path = model.get_value(iter, 6).value.get_string();
326                  
327                 }); 
328             
329                 var repo = false;
330                 rs.repos.forEach(function(r) {
331                     if (r.repopath == path) {
332                         repo = r;
333                     
334                     }
335                 
336                 });
337                 Merger.repo = repo;
338                 Merger.el.set_transient_for(Clones.el);
339                 Clones.el.set_title("Manage Clones - " + repo.repopath);
340                 Merger.show();
341                 Clones.el.set_title("Manage Clones");
342             
343                 
344                 
345             
346                  
347                 
348             
349              */      
350                 
351                 
352             });
353         }
354
355         // user defined functions
356     }
357
358     public class Xcls_Button7 : Object
359     {
360         public Gtk.Button el;
361         private Clones  _this;
362
363
364             // my vars (def)
365
366         // ctor
367         public Xcls_Button7(Clones _owner )
368         {
369             _this = _owner;
370             this.el = new Gtk.Button();
371
372             // my vars (dec)
373
374             // set gobject values
375             this.el.label = "Switch Branch";
376
377             //listeners
378             this.el.clicked.connect( () => {
379                 
380                 
381              
382                    
383                 
384                 
385             });
386         }
387
388         // user defined functions
389     }
390
391     public class Xcls_Button8 : Object
392     {
393         public Gtk.Button el;
394         private Clones  _this;
395
396
397             // my vars (def)
398
399         // ctor
400         public Xcls_Button8(Clones _owner )
401         {
402             _this = _owner;
403             this.el = new Gtk.Button();
404
405             // my vars (dec)
406
407             // set gobject values
408             this.el.label = "Pull";
409
410             //listeners
411             this.el.clicked.connect( () => {
412                 
413                 
414              
415                    
416                 
417                 
418             });
419         }
420
421         // user defined functions
422     }
423
424
425     public class Xcls_ScrolledWindow9 : Object
426     {
427         public Gtk.ScrolledWindow el;
428         private Clones  _this;
429
430
431             // my vars (def)
432
433         // ctor
434         public Xcls_ScrolledWindow9(Clones _owner )
435         {
436             _this = _owner;
437             this.el = new Gtk.ScrolledWindow( null, null );
438
439             // my vars (dec)
440
441             // set gobject values
442             this.el.shadow_type = Gtk.ShadowType.IN;
443             var child_0 = new Xcls_reposView( _this );
444             child_0.ref();
445             this.el.add (  child_0.el  );
446             var child_1 = new Xcls_TreeView24( _this );
447             child_1.ref();
448
449             // init method
450
451             {
452               
453                this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
454             }
455         }
456
457         // user defined functions
458     }
459     public class Xcls_reposView : Object
460     {
461         public Gtk.TreeView el;
462         private Clones  _this;
463
464
465             // my vars (def)
466
467         // ctor
468         public Xcls_reposView(Clones _owner )
469         {
470             _this = _owner;
471             _this.reposView = this;
472             this.el = new Gtk.TreeView();
473
474             // my vars (dec)
475
476             // set gobject values
477             var child_0 = new Xcls_reposStore( _this );
478             child_0.ref();
479             this.el.set_model (  child_0.el  );
480             var child_1 = new Xcls_tv_autocommit( _this );
481             child_1.ref();
482             this.el.append_column (  child_1.el  );
483             var child_2 = new Xcls_tv_autopush( _this );
484             child_2.ref();
485             this.el.append_column (  child_2.el  );
486             var child_3 = new Xcls_tv_repo( _this );
487             child_3.ref();
488             this.el.append_column (  child_3.el  );
489             var child_4 = new Xcls_tv_current_branch( _this );
490             child_4.ref();
491             this.el.append_column (  child_4.el  );
492             var child_5 = new Xcls_tv_last_updated( _this );
493             child_5.ref();
494             this.el.append_column (  child_5.el  );
495             var child_6 = new Xcls_tv_all_branches( _this );
496             child_6.ref();
497             this.el.append_column (  child_6.el  );
498
499             // init method
500
501             {
502                 var selection = this.el.get_selection();
503                 selection.set_mode( Gtk.SelectionMode.SINGLE);
504             
505             
506                 var description = new Pango.FontDescription();
507                 description.set_size(10000);
508                 this.el.override_font(description);
509             }
510
511             //listeners
512             this.el.cursor_changed.connect( ()  => {
513               // SEE SELECTION.CHANGED
514               /*
515               
516               return;
517               
518                 if (this.el.get_selection().count_selected_rows() < 1) {
519                     //nothing? - clea it?
520                     return;
521                 }
522                     var ret = {};         
523                 var model = this.get('/changedFilesStore');
524             
525                  var s = this.el.get_selection();
526                  var files = [];
527                 s.selected_foreach(function(model,p,iter) {
528                 
529                    files.push( model.get_value(iter, 0).value.get_string());
530                  
531                 });
532                 this.get('/patchview').showDiff(files); 
533                 //var value = ''+ ret.model.get_value(ret.iter, 1).value.get_string();
534                  //print("OUT?" + value);// id..
535                 // load the list in the right grid..
536                  
537                 return true;
538             */
539             });
540         }
541
542         // user defined functions
543     }
544     public class Xcls_reposStore : Object
545     {
546         public Gtk.ListStore el;
547         private Clones  _this;
548
549
550             // my vars (def)
551
552         // ctor
553         public Xcls_reposStore(Clones _owner )
554         {
555             _this = _owner;
556             _this.reposStore = this;
557             this.el = new Gtk.ListStore( 0,      typeof(string),  // 0 repo
558      typeof(string),  // 1 current branch
559      typeof(string),  // 2 all branch
560      typeof(string),  // 3 updated
561      typeof(bool),   // 4 auto commit
562      typeof(bool),   // 5 auto push
563      typeof(string)   // 7 repopath
564       typeof(string)   // 8 color highlighting? );
565
566             // my vars (dec)
567
568             // set gobject values
569         }
570
571         // user defined functions
572     }
573
574     public class Xcls_tv_autocommit : Object
575     {
576         public Gtk.TreeViewColumn el;
577         private Clones  _this;
578
579
580             // my vars (def)
581
582         // ctor
583         public Xcls_tv_autocommit(Clones _owner )
584         {
585             _this = _owner;
586             _this.tv_autocommit = this;
587             this.el = new Gtk.TreeViewColumn();
588
589             // my vars (dec)
590
591             // set gobject values
592             this.el.title = "Auto Commit";
593             this.el.min_width = 50;
594             var child_0 = new Xcls_cr_autocommit( _this );
595             child_0.ref();
596             this.el.pack_start (  child_0.el , false );
597
598             // init method
599
600             //    this.items[0].el.set_activatable(true);
601              this.el.add_attribute(_this.keyrender.el , "active", 4 );
602         }
603
604         // user defined functions
605     }
606     public class Xcls_cr_autocommit : Object
607     {
608         public Gtk.CellRendererToggle el;
609         private Clones  _this;
610
611
612             // my vars (def)
613
614         // ctor
615         public Xcls_cr_autocommit(Clones _owner )
616         {
617             _this = _owner;
618             _this.cr_autocommit = this;
619             this.el = new Gtk.CellRendererToggle();
620
621             // my vars (dec)
622
623             // set gobject values
624             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
625
626             //listeners
627             this.el.toggled.connect( (self, path)  => {
628             /*    var ret ={} ;
629                 var store = this.get('/reposStore');
630                 store.el.get_iter_from_string(ret, path);
631                                                                              
632                 var value =   store.el.get_value(ret.iter,4).value.get_boolean();
633                                                                              
634                 //print(JSON.stringify(value));
635                 store.el.set_value(ret.iter,4, !value);
636                 
637                  var path =  store.el.get_value(ret.iter, 6).value.get_string();
638                  var repo = imports.Scm.Repo.Repo.get(path);
639                  repo.autocommit(!value);
640               */   
641                 
642                 
643             });
644         }
645
646         // user defined functions
647     }
648
649
650     public class Xcls_tv_autopush : Object
651     {
652         public Gtk.TreeViewColumn el;
653         private Clones  _this;
654
655
656             // my vars (def)
657
658         // ctor
659         public Xcls_tv_autopush(Clones _owner )
660         {
661             _this = _owner;
662             _this.tv_autopush = this;
663             this.el = new Gtk.TreeViewColumn();
664
665             // my vars (dec)
666
667             // set gobject values
668             this.el.title = "Auto Push";
669             this.el.min_width = 50;
670             var child_0 = new Xcls_cr_autopush( _this );
671             child_0.ref();
672             this.el.pack_start (  child_0.el  );
673
674             // init method
675
676             this.el.add_attribute(this.items[0].el , 'active', 5 );
677             //      this.items[0].el.set_activatable(true);
678         }
679
680         // user defined functions
681     }
682     public class Xcls_cr_autopush : Object
683     {
684         public Gtk.CellRendererToggle el;
685         private Clones  _this;
686
687
688             // my vars (def)
689
690         // ctor
691         public Xcls_cr_autopush(Clones _owner )
692         {
693             _this = _owner;
694             _this.cr_autopush = this;
695             this.el = new Gtk.CellRendererToggle();
696
697             // my vars (dec)
698
699             // set gobject values
700             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
701
702             //listeners
703             this.el.toggled.connect( function (self, path) {
704                 var ret ={} ;
705                 var store = this.get('/reposStore');
706                 store.el.get_iter_from_string(ret, path);
707                                                                              
708                 var value =   store.el.get_value(ret.iter,5).value.get_boolean();
709                                                                              
710                 //print(JSON.stringify(value));
711                 store.el.set_value(ret.iter,5, !value);
712                   var path =  store.el.get_value(ret.iter, 6).value.get_string();
713                  var repo = imports.Scm.Repo.Repo.get(path);
714                  repo.autopush(!value);
715                  
716             });
717         }
718
719         // user defined functions
720     }
721
722
723     public class Xcls_tv_repo : Object
724     {
725         public Gtk.TreeViewColumn el;
726         private Clones  _this;
727
728
729             // my vars (def)
730
731         // ctor
732         public Xcls_tv_repo(Clones _owner )
733         {
734             _this = _owner;
735             _this.tv_repo = this;
736             this.el = new Gtk.TreeViewColumn();
737
738             // my vars (dec)
739
740             // set gobject values
741             this.el.title = "Repo";
742             this.el.min_width = 200;
743             this.el.resizable = true;
744             var child_0 = new Xcls_CellRendererText17( _this );
745             child_0.ref();
746             this.el.pack_start (  child_0.el  );
747
748             // init method
749
750             function() {
751                 XObject.prototype.init.call(this);
752                 this.el.add_attribute(this.items[0].el , 'markup', 0 );
753             
754             }
755         }
756
757         // user defined functions
758     }
759     public class Xcls_CellRendererText17 : Object
760     {
761         public Gtk.CellRendererText el;
762         private Clones  _this;
763
764
765             // my vars (def)
766
767         // ctor
768         public Xcls_CellRendererText17(Clones _owner )
769         {
770             _this = _owner;
771             this.el = new Gtk.CellRendererText();
772
773             // my vars (dec)
774
775             // set gobject values
776         }
777
778         // user defined functions
779     }
780
781
782     public class Xcls_tv_current_branch : Object
783     {
784         public Gtk.TreeViewColumn el;
785         private Clones  _this;
786
787
788             // my vars (def)
789
790         // ctor
791         public Xcls_tv_current_branch(Clones _owner )
792         {
793             _this = _owner;
794             _this.tv_current_branch = this;
795             this.el = new Gtk.TreeViewColumn();
796
797             // my vars (dec)
798
799             // set gobject values
800             this.el.title = "Current Branch";
801             this.el.min_width = 50;
802             var child_0 = new Xcls_CellRendererText19( _this );
803             child_0.ref();
804             this.el.pack_start (  child_0.el  );
805
806             // init method
807
808             function() {
809                 XObject.prototype.init.call(this);
810                 this.el.add_attribute(this.items[0].el , 'markup', 1 );
811                  this.el.add_attribute(this.items[0].el , 'cell-background', 7 );
812             
813             }
814         }
815
816         // user defined functions
817     }
818     public class Xcls_CellRendererText19 : Object
819     {
820         public Gtk.CellRendererText el;
821         private Clones  _this;
822
823
824             // my vars (def)
825
826         // ctor
827         public Xcls_CellRendererText19(Clones _owner )
828         {
829             _this = _owner;
830             this.el = new Gtk.CellRendererText();
831
832             // my vars (dec)
833
834             // set gobject values
835         }
836
837         // user defined functions
838     }
839
840
841     public class Xcls_tv_last_updated : Object
842     {
843         public Gtk.TreeViewColumn el;
844         private Clones  _this;
845
846
847             // my vars (def)
848
849         // ctor
850         public Xcls_tv_last_updated(Clones _owner )
851         {
852             _this = _owner;
853             _this.tv_last_updated = this;
854             this.el = new Gtk.TreeViewColumn();
855
856             // my vars (dec)
857
858             // set gobject values
859             this.el.title = "Last updated";
860             this.el.min_width = 50;
861             var child_0 = new Xcls_CellRendererText21( _this );
862             child_0.ref();
863             this.el.pack_start (  child_0.el  );
864
865             // init method
866
867             function() {
868                 XObject.prototype.init.call(this);
869                 this.el.add_attribute(this.items[0].el , 'markup', 3 );
870             
871             }
872         }
873
874         // user defined functions
875     }
876     public class Xcls_CellRendererText21 : Object
877     {
878         public Gtk.CellRendererText el;
879         private Clones  _this;
880
881
882             // my vars (def)
883
884         // ctor
885         public Xcls_CellRendererText21(Clones _owner )
886         {
887             _this = _owner;
888             this.el = new Gtk.CellRendererText();
889
890             // my vars (dec)
891
892             // set gobject values
893         }
894
895         // user defined functions
896     }
897
898
899     public class Xcls_tv_all_branches : Object
900     {
901         public Gtk.TreeViewColumn el;
902         private Clones  _this;
903
904
905             // my vars (def)
906
907         // ctor
908         public Xcls_tv_all_branches(Clones _owner )
909         {
910             _this = _owner;
911             _this.tv_all_branches = this;
912             this.el = new Gtk.TreeViewColumn();
913
914             // my vars (dec)
915
916             // set gobject values
917             this.el.title = "All Branches";
918             this.el.min_width = 50;
919             this.el.resizable = false;
920             var child_0 = new Xcls_CellRendererText23( _this );
921             child_0.ref();
922             this.el.pack_start (  child_0.el  );
923
924             // init method
925
926             function() {
927                 XObject.prototype.init.call(this);
928                 this.el.add_attribute(this.items[0].el , 'markup', 2 );
929             
930             }
931         }
932
933         // user defined functions
934     }
935     public class Xcls_CellRendererText23 : Object
936     {
937         public Gtk.CellRendererText el;
938         private Clones  _this;
939
940
941             // my vars (def)
942
943         // ctor
944         public Xcls_CellRendererText23(Clones _owner )
945         {
946             _this = _owner;
947             this.el = new Gtk.CellRendererText();
948
949             // my vars (dec)
950
951             // set gobject values
952         }
953
954         // user defined functions
955     }
956
957
958
959     public class Xcls_TreeView24 : Object
960     {
961         public Gtk.TreeView el;
962         private Clones  _this;
963
964
965             // my vars (def)
966
967         // ctor
968         public Xcls_TreeView24(Clones _owner )
969         {
970             _this = _owner;
971             this.el = new Gtk.TreeView();
972
973             // my vars (dec)
974
975             // set gobject values
976             var child_0 = new Xcls_ListStore25( _this );
977             child_0.ref();
978         }
979
980         // user defined functions
981     }
982     public class Xcls_ListStore25 : Object
983     {
984         public Gtk.ListStore el;
985         private Clones  _this;
986
987
988             // my vars (def)
989
990         // ctor
991         public Xcls_ListStore25(Clones _owner )
992         {
993             _this = _owner;
994             this.el = new Gtk.ListStore( 0, null );
995
996             // my vars (dec)
997
998             // set gobject values
999         }
1000
1001         // user defined functions
1002     }
1003
1004
1005
1006
1007     public class Xcls_ok_button : Object
1008     {
1009         public Gtk.Button el;
1010         private Clones  _this;
1011
1012
1013             // my vars (def)
1014
1015         // ctor
1016         public Xcls_ok_button(Clones _owner )
1017         {
1018             _this = _owner;
1019             _this.ok_button = this;
1020             this.el = new Gtk.Button();
1021
1022             // my vars (dec)
1023
1024             // set gobject values
1025             this.el.label = "Close";
1026         }
1027
1028         // user defined functions
1029     }
1030
1031 }