synchronise linux and mac event hookups
This commit is contained in:
parent
1e665b51fc
commit
ef9ea54bbc
|
@ -122,6 +122,7 @@ namespace SparkleShare {
|
|||
|
||||
};
|
||||
|
||||
|
||||
SparkleShare.Controller.OnIdle += delegate {
|
||||
|
||||
InvokeOnMainThread (delegate {
|
||||
|
|
|
@ -54,7 +54,12 @@ namespace SparkleShare {
|
|||
|
||||
SparkleShare.Controller.FolderSizeChanged += delegate {
|
||||
Application.Invoke (delegate {
|
||||
|
||||
if (!Animation.Enabled)
|
||||
SetNormalState ();
|
||||
|
||||
UpdateMenu ();
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -80,6 +80,13 @@ namespace SparkleShare {
|
|||
// Show a bubble when there are new changes
|
||||
SparkleShare.Controller.NotificationRaised += delegate (SparkleCommit commit, string repository_path) {
|
||||
|
||||
foreach (SparkleLog log in OpenLogs)
|
||||
if (log.LocalPath.Equals (repository_path))
|
||||
log.UpdateEventLog ();
|
||||
|
||||
if (!SparkleShare.Controller.NotificationsEnabled)
|
||||
return;
|
||||
|
||||
string file_name = "";
|
||||
string message = null;
|
||||
|
||||
|
@ -134,10 +141,6 @@ namespace SparkleShare {
|
|||
bubble.Icon = new Gdk.Pixbuf (avatar_file_path);
|
||||
else
|
||||
bubble.Icon = SparkleUIHelpers.GetIcon ("avatar-default", 32);
|
||||
|
||||
foreach (SparkleLog log in OpenLogs)
|
||||
if (log.LocalPath.Equals (repository_path))
|
||||
log.UpdateEventLog ();
|
||||
|
||||
bubble.AddAction ("", "Show Events", delegate {
|
||||
|
||||
|
@ -152,6 +155,7 @@ namespace SparkleShare {
|
|||
|
||||
};
|
||||
|
||||
|
||||
// Show a bubble when there was a conflict
|
||||
SparkleShare.Controller.ConflictNotificationRaised += delegate {
|
||||
Application.Invoke (delegate {
|
||||
|
@ -164,6 +168,30 @@ namespace SparkleShare {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
SparkleShare.Controller.AvatarFetched += delegate {
|
||||
|
||||
Application.Invoke (delegate {
|
||||
|
||||
foreach (SparkleLog log in OpenLogs)
|
||||
log.UpdateEventLog ();
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
SparkleShare.Controller.OnIdle += delegate {
|
||||
|
||||
Application.Invoke (delegate {
|
||||
|
||||
foreach (SparkleLog log in OpenLogs)
|
||||
log.UpdateEventLog ();
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue