Author: everaldo
Date: 2007-03-29 10:14:52 -0500 (Thu, 29 Mar 2007)
New Revision: 75147
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
2007-03-29 Everaldo Canuto <[EMAIL PROTECTED]>
* XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow
method
added to theme, now we can create themes that uses diferent notify
engines
like notification-daemon from galago project or growl for Mac OS.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-29 15:05:13 UTC (rev 75146)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-29 15:14:52 UTC (rev 75147)
@@ -1,3 +1,9 @@
+2007-03-29 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow
method
+ added to theme, now we can create themes that uses diferent notify
engines
+ like notification-daemon from galago project or growl for Mac OS.
+
2007-03-28 Everaldo Canuto <[EMAIL PROTECTED]>
* NotifyIcon.cs: Prevent Balloon to show in task bar.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
2007-03-29 15:05:13 UTC (rev 75146)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
2007-03-29 15:14:52 UTC (rev 75147)
@@ -914,6 +914,7 @@
#region BalloonWindow
#if NET_2_0
+ public abstract void ShowBalloonWindow (IntPtr handle, int
timeout, string title, string text, ToolTipIcon icon);
public abstract void DrawBalloonWindow (Graphics dc, Rectangle
clip, NotifyIcon.BalloonWindow control);
public abstract Rectangle BalloonWindowRect
(NotifyIcon.BalloonWindow control);
#endif
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2007-03-29 15:05:13 UTC (rev 75146)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2007-03-29 15:14:52 UTC (rev 75147)
@@ -4859,6 +4859,27 @@
#region BalloonWindow
#if NET_2_0
+ NotifyIcon.BalloonWindow balloon_window;
+
+ public override void ShowBalloonWindow (IntPtr handle, int
timeout, string title, string text, ToolTipIcon icon)
+ {
+ Control control = Control.FromHandle(handle);
+
+ if (control == null)
+ return;
+
+ if (balloon_window != null) {
+ balloon_window.Close ();
+ balloon_window.Dispose ();
+ }
+
+ balloon_window = new NotifyIcon.BalloonWindow (handle);
+ balloon_window.Title = title;
+ balloon_window.Text = text;
+ balloon_window.Timeout = timeout;
+ balloon_window.Show ();
+ }
+
public override void DrawBalloonWindow (Graphics dc, Rectangle
clip, NotifyIcon.BalloonWindow control)
{
Brush solidbrush =
ResPool.GetSolidBrush(this.ColorInfoText);
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2007-03-29 15:05:13 UTC (rev 75146)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2007-03-29 15:14:52 UTC (rev 75147)
@@ -5406,26 +5406,9 @@
}
#if NET_2_0
- NotifyIcon.BalloonWindow balloon_window;
-
internal override void SystrayBalloon(IntPtr handle, int
timeout, string title, string text, ToolTipIcon icon)
{
- Control control = Control.FromHandle(handle);
-
- if (control == null)
- return;
-
- if (balloon_window != null) {
- balloon_window.Close ();
- balloon_window.Dispose ();
- }
-
- balloon_window = new NotifyIcon.BalloonWindow (handle);
- balloon_window.Title = title;
- balloon_window.Text = text;
- balloon_window.Timeout = timeout;
- balloon_window.Show ();
-
+ ThemeEngine.Current.ShowBalloonWindow (handle, timeout,
title, text, icon);
SendMessage(handle, Msg.WM_USER, IntPtr.Zero, (IntPtr)
Msg.NIN_BALLOONSHOW);
}
#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches