From 97d8beaf66e8e33d22c567f10f2df75514546077 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 11 Mar 2012 14:05:53 +0000 Subject: [PATCH] windows statusicon: re-enable balloons --- SparkleShare/Windows/SparkleNotifyIcon.cs | 11 ++++++++++- SparkleShare/Windows/SparkleStatusIcon.cs | 5 +---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/SparkleShare/Windows/SparkleNotifyIcon.cs b/SparkleShare/Windows/SparkleNotifyIcon.cs index 2ac66a24..5c368a42 100644 --- a/SparkleShare/Windows/SparkleNotifyIcon.cs +++ b/SparkleShare/Windows/SparkleNotifyIcon.cs @@ -147,7 +147,16 @@ namespace SparkleShare { this.hook_proc_ref = OnMouseEventProc; } - + + + public void ShowBalloonTip (string title, string subtext, string image_path) + { + // TODO: + // - Use the image pointed to by image_path + // - Find a way to use the prettier (Win7?) balloons + this.notify_icon.ShowBalloonTip (5 * 1000, title, subtext, Forms.ToolTipIcon.Info); + } + public void Dispose() { diff --git a/SparkleShare/Windows/SparkleStatusIcon.cs b/SparkleShare/Windows/SparkleStatusIcon.cs index 102883bf..1441ac22 100644 --- a/SparkleShare/Windows/SparkleStatusIcon.cs +++ b/SparkleShare/Windows/SparkleStatusIcon.cs @@ -289,10 +289,7 @@ namespace SparkleShare { public void ShowBalloon (string title, string subtext, string image_path) { - // TODO: - // - Use the image pointed to by image_path - // - Find a way to use the prettier (Win7?) balloons - //this.notify_icon.ShowBalloonTip (5 * 1000, title, subtext, Forms.ToolTipIcon.Info); + this.notify_icon.ShowBalloonTip (title, subtext, image_path); }