projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29f3680
)
StatusIcon.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 1 Aug 2018 09:38:13 +0000
(17:38 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 1 Aug 2018 09:38:13 +0000
(17:38 +0800)
StatusIcon.vala
patch
|
blob
|
history
diff --git
a/StatusIcon.vala
b/StatusIcon.vala
index
74ef174
..
45ef148
100644
(file)
--- a/
StatusIcon.vala
+++ b/
StatusIcon.vala
@@
-303,7
+303,7
@@
public class StatusIconA : StatusIcon {
this.total = tr.length;
this.has_error = 0;
this.total = tr.length;
this.has_error = 0;
-
+ this.pull_all_error_message = "";
for (var i= 0; i< tr.length;i++) {
statusicon.set_from_stock(
i%2 == 0 ? Gtk.Stock.FULLSCREEN : Gtk.Stock.LEAVE_FULLSCREEN );
for (var i= 0; i< tr.length;i++) {
statusicon.set_from_stock(
i%2 == 0 ? Gtk.Stock.FULLSCREEN : Gtk.Stock.LEAVE_FULLSCREEN );
@@
-326,14
+326,15
@@
public class StatusIconA : StatusIcon {
}
uint total = 0;
}
uint total = 0;
- unit has_error = 0;
+ uint has_error = 0;
+ string pull_all_error_message = "";
void pullAllCallback(GitRepo repo, int err, string res)
{
this.total--;
if (err > 0) {
void pullAllCallback(GitRepo repo, int err, string res)
{
this.total--;
if (err > 0) {
-
+ this.has_error = 1;
}
}
@@
-350,6
+351,8
@@
public class StatusIconA : StatusIcon {
}
if (this.total < 1) {
}
if (this.total < 1) {
+ if (this.has_error) {
+ GitMonitor.gitmonitor.pauseError(
statusicon.set_tooltip_text("Gitlive");
statusicon.set_tooltip_text("Gitlive");