projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a1f082
)
StatusIcon.vala
author
Alan Knowles
<alan@akbkhome.com>
Tue, 6 May 2014 13:43:27 +0000
(21:43 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 6 May 2014 13:43:27 +0000
(21:43 +0800)
StatusIcon.vala
patch
|
blob
|
history
diff --git
a/StatusIcon.vala
b/StatusIcon.vala
index
1e10bfa
..
8555fa6
100644
(file)
--- a/
StatusIcon.vala
+++ b/
StatusIcon.vala
@@
-86,7
+86,11
@@
class StatusIconA : StatusIcon {
this.title = "gitlive";
this.set_name("gitlive");
this.title = "gitlive";
this.set_name("gitlive");
+
+ var menu = new MenuA();
+
+
this.popup_menu.connect( (button,event_time) =>{
//print(Array.prototype.slice.call(arguments).join(','));
this.popup_menu.connect( (button,event_time) =>{
//print(Array.prototype.slice.call(arguments).join(','));
@@
-113,8
+117,6
@@
class StatusIconA : StatusIcon {
- this.menu = new MenuA();
-
//var g = { };
//var a = new Gdk.Rectangle();
// needs direction=inout setting in gir to work (in bugzilla @present)
//var g = { };
//var a = new Gdk.Rectangle();
// needs direction=inout setting in gir to work (in bugzilla @present)
@@
-148,8
+150,17
@@
class StatusIconA : StatusIcon {
{
this.set_from_stock( Gtk.STOCK_MEDIA_PAUSE );
this.label= "Pause Commits";
{
this.set_from_stock( Gtk.STOCK_MEDIA_PAUSE );
this.label= "Pause Commits";
- this.always_show_image : true,
- this.accel_group : null,
+ this.always_show_image = true;
+ this.accel_group = null;
+
+ this.activate.connect( () => {
+ this.parent.parent.paused = true;
+ imports.GitMonitor.GitMonitor.stop();
+ // this.el.label = status ? 'Resume' : 'Pause';
+ this.parent.parent.el.set_from_stock( Gtk.STOCK_MEDIA_PAUSE );
+
+
+ })
// id : 'pause',
}
// id : 'pause',
}