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