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