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