[log] update when avatars are fetched
This commit is contained in:
parent
7dc9b61be5
commit
aa3d508dff
|
@ -111,6 +111,8 @@ namespace SparkleShare {
|
|||
|
||||
WebView.MainFrame.LoadHtmlString (html, new NSUrl (""));
|
||||
|
||||
Update ();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -63,6 +63,21 @@ namespace SparkleShare {
|
|||
NewEvents++;
|
||||
NSApplication.SharedApplication.DockTile.BadgeLabel = NewEvents.ToString ();
|
||||
|
||||
foreach (SparkleLog log in SparkleUI.OpenLogs)
|
||||
log.UpdateEventLog ();
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
SparkleShare.Controller.AvatarFetched += delegate {
|
||||
|
||||
InvokeOnMainThread (delegate {
|
||||
|
||||
foreach (SparkleLog log in SparkleUI.OpenLogs)
|
||||
log.UpdateEventLog ();
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
|
|
@ -53,6 +53,9 @@ namespace SparkleShare {
|
|||
public event FolderSizeChangedEventHandler FolderSizeChanged;
|
||||
public delegate void FolderSizeChangedEventHandler (string folder_size);
|
||||
|
||||
public event AvatarFetchedEventHandler AvatarFetched;
|
||||
public delegate void AvatarFetchedEventHandler ();
|
||||
|
||||
public event OnIdleEventHandler OnIdle;
|
||||
public delegate void OnIdleEventHandler ();
|
||||
|
||||
|
@ -1029,7 +1032,7 @@ namespace SparkleShare {
|
|||
|
||||
|
||||
// Gets the avatar for a specific email address and size
|
||||
public static string GetAvatar (string email, int size)
|
||||
public string GetAvatar (string email, int size)
|
||||
{
|
||||
|
||||
string avatar_path = SparkleHelpers.CombineMore (SparklePaths.SparkleLocalIconPath,
|
||||
|
@ -1071,6 +1074,9 @@ namespace SparkleShare {
|
|||
if (tmp_file_info.Length > 255)
|
||||
File.Move (tmp_file_path, avatar_file_path);
|
||||
|
||||
if (AvatarFetched != null)
|
||||
AvatarFetched ();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -66,7 +66,10 @@
|
|||
}
|
||||
|
||||
img {
|
||||
margin-right: 12px;
|
||||
margin-right: 12px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background-color: <!-- $small-color -->;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue