RepoStatusPopover.bjs
[gitlive] / RepoStatusPopover.vala
1 static RepoStatusPopover  _RepoStatusPopover;
2
3 public class RepoStatusPopover : Object
4 {
5     public Gtk.Popover el;
6     private RepoStatusPopover  _this;
7
8     public static RepoStatusPopover singleton()
9     {
10         if (_RepoStatusPopover == null) {
11             _RepoStatusPopover= new RepoStatusPopover();
12         }
13         return _RepoStatusPopover;
14     }
15     public Xcls_label_status label_status;
16     public Xcls_label_diff label_diff;
17     public Xcls_status_view status_view;
18     public Xcls_diff_view diff_view;
19
20         // my vars (def)
21     public GitRepo repo;
22
23     // ctor
24     public RepoStatusPopover()
25     {
26         _this = this;
27         this.el = new Gtk.Popover( null );
28
29         // my vars (dec)
30
31         // set gobject values
32         this.el.border_width = 0;
33         this.el.modal = true;
34         this.el.position = Gtk.PositionType.RIGHT;
35         var child_0 = new Xcls_Box2( _this );
36         child_0.ref();
37         this.el.add (  child_0.el  );
38     }
39
40     // user defined functions
41     public void show (Gtk.Widget btn, Gdk.Rectangle rect, GitRepo repo) {
42         _this.repo = repo;
43         // get the active project.
44          var lm = Gtk.SourceLanguageManager.get_default();
45                     
46     //    ((Gtk.SourceBuffer)(_this.view.el.get_buffer())) .set_language(
47       //      lm.get_language("html")
48      //   );
49       
50         //print (project.fn);
51         //project.runhtml = project.runhtml || '';
52         _this.diff_view.el.get_buffer().set_text(repo.git_diff);
53         _this.status_view.el.get_buffer().set_text(repo.git_status);
54            
55                 //console.log('show all');
56         this.el.set_modal(true);
57         this.el.set_relative_to(btn);
58         this.el.set_pointing_to(rect);
59       
60         //this.el.set_position(Gtk.PositionType.RIGHT);
61     
62         // window + header?
63          GLib.debug("SHOWALL - POPIP\n");
64         this.el.show_all();
65         //this.el.set_size_request(800,500);
66     //  this.diff_view.el.grab_focus();
67         
68         //this.el.show_all();
69     }
70     public class Xcls_Box2 : Object
71     {
72         public Gtk.Box el;
73         private RepoStatusPopover  _this;
74
75
76             // my vars (def)
77
78         // ctor
79         public Xcls_Box2(RepoStatusPopover _owner )
80         {
81             _this = _owner;
82             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
83
84             // my vars (dec)
85
86             // set gobject values
87             this.el.homogeneous = false;
88             this.el.border_width = 5;
89             var child_0 = new Xcls_Toolbar3( _this );
90             child_0.ref();
91             this.el.add (  child_0.el  );
92             var child_1 = new Xcls_Notebook11( _this );
93             child_1.ref();
94             this.el.pack_start (  child_1.el , true,true,0 );
95             var child_2 = new Xcls_Box20( _this );
96             child_2.ref();
97             this.el.pack_end (  child_2.el , false,false,0 );
98         }
99
100         // user defined functions
101     }
102     public class Xcls_Toolbar3 : Object
103     {
104         public Gtk.Toolbar el;
105         private RepoStatusPopover  _this;
106
107
108             // my vars (def)
109
110         // ctor
111         public Xcls_Toolbar3(RepoStatusPopover _owner )
112         {
113             _this = _owner;
114             this.el = new Gtk.Toolbar();
115
116             // my vars (dec)
117
118             // set gobject values
119             this.el.vexpand = false;
120             this.el.toolbar_style = Gtk.ToolbarStyle.BOTH_HORIZ;
121             var child_0 = new Xcls_ToolButton4( _this );
122             child_0.ref();
123             this.el.add (  child_0.el  );
124             var child_1 = new Xcls_ToolButton5( _this );
125             child_1.ref();
126             this.el.add (  child_1.el  );
127             var child_2 = new Xcls_ToolButton6( _this );
128             child_2.ref();
129             this.el.add (  child_2.el  );
130             var child_3 = new Xcls_ToolButton7( _this );
131             child_3.ref();
132             this.el.add (  child_3.el  );
133             var child_4 = new Xcls_ToolButton8( _this );
134             child_4.ref();
135             this.el.add (  child_4.el  );
136             var child_5 = new Xcls_ToolButton9( _this );
137             child_5.ref();
138             this.el.add (  child_5.el  );
139             var child_6 = new Xcls_ToolButton10( _this );
140             child_6.ref();
141             this.el.add (  child_6.el  );
142         }
143
144         // user defined functions
145     }
146     public class Xcls_ToolButton4 : Object
147     {
148         public Gtk.ToolButton el;
149         private RepoStatusPopover  _this;
150
151
152             // my vars (def)
153
154         // ctor
155         public Xcls_ToolButton4(RepoStatusPopover _owner )
156         {
157             _this = _owner;
158             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-undo", Gtk.IconSize.SMALL_TOOLBAR), null);;
159
160             // my vars (dec)
161
162             // set gobject values
163             this.el.label = "Stash Changes";
164             this.el.is_important = true;
165
166             //listeners
167             this.el.button_press_event.connect( () => {
168               
169                
170                GitMonitor.gitmonitor.stop();
171                _this.repo.git({ "stash" , "--all" });
172                _this.repo.loadStatus();
173                GitMonitor.gitmonitor.start();
174                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
175                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
176                 Clones.singleton().reposStore.load();
177               
178                _this.el.hide();
179                 return false;
180             });
181         }
182
183         // user defined functions
184     }
185
186     public class Xcls_ToolButton5 : Object
187     {
188         public Gtk.ToolButton el;
189         private RepoStatusPopover  _this;
190
191
192             // my vars (def)
193
194         // ctor
195         public Xcls_ToolButton5(RepoStatusPopover _owner )
196         {
197             _this = _owner;
198             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-save", Gtk.IconSize.SMALL_TOOLBAR), null);;
199
200             // my vars (dec)
201
202             // set gobject values
203             this.el.label = "Commit Changes";
204             this.el.is_important = true;
205
206             //listeners
207             this.el.button_press_event.connect( () => {
208                _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" });
209                _this.repo.push();
210                _this.repo.loadStatus();
211                
212                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
213                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
214                 
215                _this.el.hide();
216                Clones.singleton().reposStore.load();
217                
218                 return false;
219             });
220         }
221
222         // user defined functions
223     }
224
225     public class Xcls_ToolButton6 : Object
226     {
227         public Gtk.ToolButton el;
228         private RepoStatusPopover  _this;
229
230
231             // my vars (def)
232
233         // ctor
234         public Xcls_ToolButton6(RepoStatusPopover _owner )
235         {
236             _this = _owner;
237             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-add", Gtk.IconSize.SMALL_TOOLBAR), null);;
238
239             // my vars (dec)
240
241             // set gobject values
242             this.el.label = "Create Branch / Start ticket";
243             this.el.is_important = true;
244
245             //listeners
246             this.el.button_press_event.connect( () => {
247                var oldq = new Gee.ArrayList<GitMonitorQueue>();  
248             
249                 Clones.singleton().el.response(-1);
250                 NewBranch.singleton().show(_this.repo, oldq);
251             
252                 return false;
253             });
254         }
255
256         // user defined functions
257     }
258
259     public class Xcls_ToolButton7 : Object
260     {
261         public Gtk.ToolButton el;
262         private RepoStatusPopover  _this;
263
264
265             // my vars (def)
266
267         // ctor
268         public Xcls_ToolButton7(RepoStatusPopover _owner )
269         {
270             _this = _owner;
271             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-revert-to-saved", Gtk.IconSize.SMALL_TOOLBAR), null);;
272
273             // my vars (dec)
274
275             // set gobject values
276             this.el.label = "Reset / clear changes";
277             this.el.is_important = true;
278
279             //listeners
280             this.el.button_press_event.connect( () => {
281               
282                
283                GitMonitor.gitmonitor.stop();
284                _this.repo.git({ "reset" , "--hard" });
285                _this.repo.loadStatus();
286                GitMonitor.gitmonitor.start();
287                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
288                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
289                 Clones.singleton().reposStore.load();
290               
291                _this.el.hide();
292                 return false;
293             });
294         }
295
296         // user defined functions
297     }
298
299     public class Xcls_ToolButton8 : Object
300     {
301         public Gtk.ToolButton el;
302         private RepoStatusPopover  _this;
303
304
305             // my vars (def)
306
307         // ctor
308         public Xcls_ToolButton8(RepoStatusPopover _owner )
309         {
310             _this = _owner;
311             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-goto-bottom", Gtk.IconSize.SMALL_TOOLBAR), null);;
312
313             // my vars (dec)
314
315             // set gobject values
316             this.el.label = "Pull updates";
317             this.el.is_important = true;
318
319             //listeners
320             this.el.button_press_event.connect( () => {
321               
322                
323                GitMonitor.gitmonitor.stop();
324                _this.repo.git({ "pull" , "--all" });
325                _this.repo.loadStatus();
326                GitMonitor.gitmonitor.start();
327                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
328                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
329                 Clones.singleton().reposStore.load();
330               
331                _this.el.hide();
332                 return false;
333             });
334         }
335
336         // user defined functions
337     }
338
339     public class Xcls_ToolButton9 : Object
340     {
341         public Gtk.ToolButton el;
342         private RepoStatusPopover  _this;
343
344
345             // my vars (def)
346
347         // ctor
348         public Xcls_ToolButton9(RepoStatusPopover _owner )
349         {
350             _this = _owner;
351             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-goto-top", Gtk.IconSize.SMALL_TOOLBAR), null);;
352
353             // my vars (dec)
354
355             // set gobject values
356             this.el.label = "Merge branch/  ticket";
357             this.el.is_important = true;
358
359             //listeners
360             this.el.button_press_event.connect( () => {
361             
362                _this.el.hide();
363                Clones.singleton().el.response(-1);
364                if (_this.repo.activeTicket != null) {
365                    MergeBranch.singleton().show(_this.repo.activeTicket, null);   
366                }
367                 return false;
368             });
369         }
370
371         // user defined functions
372     }
373
374     public class Xcls_ToolButton10 : Object
375     {
376         public Gtk.ToolButton el;
377         private RepoStatusPopover  _this;
378
379
380             // my vars (def)
381
382         // ctor
383         public Xcls_ToolButton10(RepoStatusPopover _owner )
384         {
385             _this = _owner;
386             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-new", Gtk.IconSize.SMALL_TOOLBAR), null);;
387
388             // my vars (dec)
389
390             // set gobject values
391             this.el.label = "Create Ticket";
392             this.el.is_important = true;
393
394             //listeners
395             this.el.button_press_event.connect( () => {
396               
397             
398             
399                   Clones.singleton().el.response(-1);
400               
401                _this.el.hide();
402                Ticket.singleton().show( _this.repo);
403                
404                 return false;
405             });
406         }
407
408         // user defined functions
409     }
410
411
412     public class Xcls_Notebook11 : Object
413     {
414         public Gtk.Notebook el;
415         private RepoStatusPopover  _this;
416
417
418             // my vars (def)
419
420         // ctor
421         public Xcls_Notebook11(RepoStatusPopover _owner )
422         {
423             _this = _owner;
424             this.el = new Gtk.Notebook();
425
426             // my vars (dec)
427
428             // set gobject values
429             var child_0 = new Xcls_label_status( _this );
430             child_0.ref();
431             var child_1 = new Xcls_label_diff( _this );
432             child_1.ref();
433             var child_2 = new Xcls_Box14( _this );
434             child_2.ref();
435             this.el.append_page (  child_2.el , _this.label_status.el );
436             var child_3 = new Xcls_Box17( _this );
437             child_3.ref();
438             this.el.append_page (  child_3.el , _this.label_diff.el );
439         }
440
441         // user defined functions
442     }
443     public class Xcls_label_status : Object
444     {
445         public Gtk.Label el;
446         private RepoStatusPopover  _this;
447
448
449             // my vars (def)
450
451         // ctor
452         public Xcls_label_status(RepoStatusPopover _owner )
453         {
454             _this = _owner;
455             _this.label_status = this;
456             this.el = new Gtk.Label( "Status" );
457
458             // my vars (dec)
459
460             // set gobject values
461         }
462
463         // user defined functions
464     }
465
466     public class Xcls_label_diff : Object
467     {
468         public Gtk.Label el;
469         private RepoStatusPopover  _this;
470
471
472             // my vars (def)
473
474         // ctor
475         public Xcls_label_diff(RepoStatusPopover _owner )
476         {
477             _this = _owner;
478             _this.label_diff = this;
479             this.el = new Gtk.Label( "Diff" );
480
481             // my vars (dec)
482
483             // set gobject values
484         }
485
486         // user defined functions
487     }
488
489     public class Xcls_Box14 : Object
490     {
491         public Gtk.Box el;
492         private RepoStatusPopover  _this;
493
494
495             // my vars (def)
496
497         // ctor
498         public Xcls_Box14(RepoStatusPopover _owner )
499         {
500             _this = _owner;
501             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
502
503             // my vars (dec)
504
505             // set gobject values
506             this.el.homogeneous = false;
507             var child_0 = new Xcls_ScrolledWindow15( _this );
508             child_0.ref();
509             this.el.pack_start (  child_0.el , true,true,0 );
510         }
511
512         // user defined functions
513     }
514     public class Xcls_ScrolledWindow15 : Object
515     {
516         public Gtk.ScrolledWindow el;
517         private RepoStatusPopover  _this;
518
519
520             // my vars (def)
521
522         // ctor
523         public Xcls_ScrolledWindow15(RepoStatusPopover _owner )
524         {
525             _this = _owner;
526             this.el = new Gtk.ScrolledWindow( null, null );
527
528             // my vars (dec)
529
530             // set gobject values
531             var child_0 = new Xcls_status_view( _this );
532             child_0.ref();
533             this.el.add (  child_0.el  );
534         }
535
536         // user defined functions
537     }
538     public class Xcls_status_view : Object
539     {
540         public Gtk.SourceView el;
541         private RepoStatusPopover  _this;
542
543
544             // my vars (def)
545
546         // ctor
547         public Xcls_status_view(RepoStatusPopover _owner )
548         {
549             _this = _owner;
550             _this.status_view = this;
551             this.el = new Gtk.SourceView();
552
553             // my vars (dec)
554
555             // init method
556
557             var description =   Pango.FontDescription.from_string("monospace");
558                 description.set_size(9000);
559                 this.el.override_font(description);
560         }
561
562         // user defined functions
563     }
564
565
566
567     public class Xcls_Box17 : Object
568     {
569         public Gtk.Box el;
570         private RepoStatusPopover  _this;
571
572
573             // my vars (def)
574
575         // ctor
576         public Xcls_Box17(RepoStatusPopover _owner )
577         {
578             _this = _owner;
579             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
580
581             // my vars (dec)
582
583             // set gobject values
584             this.el.homogeneous = false;
585             var child_0 = new Xcls_ScrolledWindow18( _this );
586             child_0.ref();
587             this.el.pack_start (  child_0.el , true,true,0 );
588         }
589
590         // user defined functions
591     }
592     public class Xcls_ScrolledWindow18 : Object
593     {
594         public Gtk.ScrolledWindow el;
595         private RepoStatusPopover  _this;
596
597
598             // my vars (def)
599
600         // ctor
601         public Xcls_ScrolledWindow18(RepoStatusPopover _owner )
602         {
603             _this = _owner;
604             this.el = new Gtk.ScrolledWindow( null, null );
605
606             // my vars (dec)
607
608             // set gobject values
609             this.el.height_request = 400;
610             var child_0 = new Xcls_diff_view( _this );
611             child_0.ref();
612             this.el.add (  child_0.el  );
613         }
614
615         // user defined functions
616     }
617     public class Xcls_diff_view : Object
618     {
619         public Gtk.SourceView el;
620         private RepoStatusPopover  _this;
621
622
623             // my vars (def)
624
625         // ctor
626         public Xcls_diff_view(RepoStatusPopover _owner )
627         {
628             _this = _owner;
629             _this.diff_view = this;
630             this.el = new Gtk.SourceView();
631
632             // my vars (dec)
633
634             // init method
635
636             var description =   Pango.FontDescription.from_string("monospace");
637                 description.set_size(9000);
638                 this.el.override_font(description);
639         }
640
641         // user defined functions
642     }
643
644
645
646
647     public class Xcls_Box20 : Object
648     {
649         public Gtk.Box el;
650         private RepoStatusPopover  _this;
651
652
653             // my vars (def)
654
655         // ctor
656         public Xcls_Box20(RepoStatusPopover _owner )
657         {
658             _this = _owner;
659             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
660
661             // my vars (dec)
662
663             // set gobject values
664             this.el.homogeneous = true;
665             this.el.expand = false;
666             this.el.vexpand = false;
667             var child_0 = new Xcls_Toolbar21( _this );
668             child_0.ref();
669             this.el.add (  child_0.el  );
670         }
671
672         // user defined functions
673     }
674     public class Xcls_Toolbar21 : Object
675     {
676         public Gtk.Toolbar el;
677         private RepoStatusPopover  _this;
678
679
680             // my vars (def)
681
682         // ctor
683         public Xcls_Toolbar21(RepoStatusPopover _owner )
684         {
685             _this = _owner;
686             this.el = new Gtk.Toolbar();
687
688             // my vars (dec)
689
690             // set gobject values
691             this.el.toolbar_style = Gtk.ToolbarStyle.BOTH_HORIZ;
692             var child_0 = new Xcls_ToolButton22( _this );
693             child_0.ref();
694             this.el.add (  child_0.el  );
695             var child_1 = new Xcls_ToolButton23( _this );
696             child_1.ref();
697             this.el.add (  child_1.el  );
698             var child_2 = new Xcls_ToolButton24( _this );
699             child_2.ref();
700             this.el.add (  child_2.el  );
701             var child_3 = new Xcls_ToolButton25( _this );
702             child_3.ref();
703             this.el.add (  child_3.el  );
704             var child_4 = new Xcls_ToolButton26( _this );
705             child_4.ref();
706             this.el.add (  child_4.el  );
707             var child_5 = new Xcls_ToolButton27( _this );
708             child_5.ref();
709             this.el.add (  child_5.el  );
710             var child_6 = new Xcls_ToolButton28( _this );
711             child_6.ref();
712             this.el.add (  child_6.el  );
713         }
714
715         // user defined functions
716     }
717     public class Xcls_ToolButton22 : Object
718     {
719         public Gtk.ToolButton el;
720         private RepoStatusPopover  _this;
721
722
723             // my vars (def)
724
725         // ctor
726         public Xcls_ToolButton22(RepoStatusPopover _owner )
727         {
728             _this = _owner;
729             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-undo", Gtk.IconSize.SMALL_TOOLBAR), null);;
730
731             // my vars (dec)
732
733             // set gobject values
734             this.el.label = "Stash Changes";
735             this.el.is_important = true;
736
737             //listeners
738             this.el.button_press_event.connect( () => {
739               
740                
741                GitMonitor.gitmonitor.stop();
742                _this.repo.git({ "stash" , "--all" });
743                _this.repo.loadStatus();
744                GitMonitor.gitmonitor.start();
745                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
746                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
747                 Clones.singleton().reposStore.load();
748               
749                _this.el.hide();
750                 return false;
751             });
752         }
753
754         // user defined functions
755     }
756
757     public class Xcls_ToolButton23 : Object
758     {
759         public Gtk.ToolButton el;
760         private RepoStatusPopover  _this;
761
762
763             // my vars (def)
764
765         // ctor
766         public Xcls_ToolButton23(RepoStatusPopover _owner )
767         {
768             _this = _owner;
769             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-save", Gtk.IconSize.SMALL_TOOLBAR), null);;
770
771             // my vars (dec)
772
773             // set gobject values
774             this.el.label = "Commit Changes";
775             this.el.is_important = true;
776
777             //listeners
778             this.el.button_press_event.connect( () => {
779                _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" });
780                _this.repo.push();
781                _this.repo.loadStatus();
782                
783                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
784                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
785                 
786                _this.el.hide();
787                Clones.singleton().reposStore.load();
788                
789                 return false;
790             });
791         }
792
793         // user defined functions
794     }
795
796     public class Xcls_ToolButton24 : Object
797     {
798         public Gtk.ToolButton el;
799         private RepoStatusPopover  _this;
800
801
802             // my vars (def)
803
804         // ctor
805         public Xcls_ToolButton24(RepoStatusPopover _owner )
806         {
807             _this = _owner;
808             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-add", Gtk.IconSize.SMALL_TOOLBAR), null);;
809
810             // my vars (dec)
811
812             // set gobject values
813             this.el.label = "Create Branch / Start ticket";
814             this.el.is_important = true;
815
816             //listeners
817             this.el.button_press_event.connect( () => {
818                var oldq = new Gee.ArrayList<GitMonitorQueue>();  
819             
820                 Clones.singleton().el.response(-1);
821                 NewBranch.singleton().show(_this.repo, oldq);
822             
823                 return false;
824             });
825         }
826
827         // user defined functions
828     }
829
830     public class Xcls_ToolButton25 : Object
831     {
832         public Gtk.ToolButton el;
833         private RepoStatusPopover  _this;
834
835
836             // my vars (def)
837
838         // ctor
839         public Xcls_ToolButton25(RepoStatusPopover _owner )
840         {
841             _this = _owner;
842             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-revert-to-saved", Gtk.IconSize.SMALL_TOOLBAR), null);;
843
844             // my vars (dec)
845
846             // set gobject values
847             this.el.label = "Reset / clear changes";
848             this.el.is_important = true;
849
850             //listeners
851             this.el.button_press_event.connect( () => {
852               
853                
854                GitMonitor.gitmonitor.stop();
855                _this.repo.git({ "reset" , "--hard" });
856                _this.repo.loadStatus();
857                GitMonitor.gitmonitor.start();
858                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
859                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
860                 Clones.singleton().reposStore.load();
861               
862                _this.el.hide();
863                 return false;
864             });
865         }
866
867         // user defined functions
868     }
869
870     public class Xcls_ToolButton26 : Object
871     {
872         public Gtk.ToolButton el;
873         private RepoStatusPopover  _this;
874
875
876             // my vars (def)
877
878         // ctor
879         public Xcls_ToolButton26(RepoStatusPopover _owner )
880         {
881             _this = _owner;
882             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-goto-bottom", Gtk.IconSize.SMALL_TOOLBAR), null);;
883
884             // my vars (dec)
885
886             // set gobject values
887             this.el.label = "Pull updates";
888             this.el.is_important = true;
889
890             //listeners
891             this.el.button_press_event.connect( () => {
892               
893                
894                GitMonitor.gitmonitor.stop();
895                _this.repo.git({ "pull" , "--all" });
896                _this.repo.loadStatus();
897                GitMonitor.gitmonitor.start();
898                 _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
899                 _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
900                 Clones.singleton().reposStore.load();
901               
902                _this.el.hide();
903                 return false;
904             });
905         }
906
907         // user defined functions
908     }
909
910     public class Xcls_ToolButton27 : Object
911     {
912         public Gtk.ToolButton el;
913         private RepoStatusPopover  _this;
914
915
916             // my vars (def)
917
918         // ctor
919         public Xcls_ToolButton27(RepoStatusPopover _owner )
920         {
921             _this = _owner;
922             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-goto-top", Gtk.IconSize.SMALL_TOOLBAR), null);;
923
924             // my vars (dec)
925
926             // set gobject values
927             this.el.label = "Merge branch/  ticket";
928             this.el.is_important = true;
929
930             //listeners
931             this.el.button_press_event.connect( () => {
932             
933                _this.el.hide();
934                Clones.singleton().el.response(-1);
935                if (_this.repo.activeTicket != null) {
936                    MergeBranch.singleton().show(_this.repo.activeTicket, null);   
937                }
938                 return false;
939             });
940         }
941
942         // user defined functions
943     }
944
945     public class Xcls_ToolButton28 : Object
946     {
947         public Gtk.ToolButton el;
948         private RepoStatusPopover  _this;
949
950
951             // my vars (def)
952
953         // ctor
954         public Xcls_ToolButton28(RepoStatusPopover _owner )
955         {
956             _this = _owner;
957             this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-new", Gtk.IconSize.SMALL_TOOLBAR), null);;
958
959             // my vars (dec)
960
961             // set gobject values
962             this.el.label = "Create Ticket";
963             this.el.is_important = true;
964
965             //listeners
966             this.el.button_press_event.connect( () => {
967               
968             
969             
970                   Clones.singleton().el.response(-1);
971               
972                _this.el.hide();
973                Ticket.singleton().show( _this.repo);
974                
975                 return false;
976             });
977         }
978
979         // user defined functions
980     }
981
982
983
984
985 }