gnome bubbles: Call notifications from the main thread. #1362

Conflicts:
	SparkleShare/Linux/SparkleBubbles.cs
This commit is contained in:
Hylke Bons 2013-10-11 21:57:41 +02:00
parent 64aba28c69
commit b1441ba453

View file

@ -34,7 +34,7 @@ namespace SparkleShare {
if (!Program.Controller.NotificationsEnabled)
return;
try {
Application.Invoke (delegate {
Notification notification = new Notification () {
Summary = title,
Body = subtext,
@ -52,11 +52,13 @@ namespace SparkleShare {
Controller.BubbleClicked ();
};
notification.Show ();
try {
notification.Show ();
} catch (Exception e) {
SparkleLogger.LogInfo ("Notification", "Error showing notification: ", e);
}
} catch (Exception e) {
SparkleLogger.LogInfo ("Notification", "Error showing notification: ", e);
}
});
};
}
}