Author: toshok
Date: 2006-10-06 13:37:45 -0400 (Fri, 06 Oct 2006)
New Revision: 66368

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
Log:
        * NotifyIcon.cs (HandleMouseUp): only show the context menu on
        right mouse clicks.  Fixes bug #79593.

2006-10-06  Chris Toshok  <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-06 17:30:25 UTC (rev 66367)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-06 17:37:45 UTC (rev 66368)
@@ -1,5 +1,10 @@
 2006-10-06  Chris Toshok  <[EMAIL PROTECTED]>
 
+       * NotifyIcon.cs (HandleMouseUp): only show the context menu on
+       right mouse clicks.  Fixes bug #79593.
+
+2006-10-06  Chris Toshok  <[EMAIL PROTECTED]>
+
        * Splitter.cs: doh, fix splitters that don't want to cancel the
        movement when you drag them.  Also, impose the limits on the
        values we send to the SplitterMovingEvent.  Fixes #79598.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs    
2006-10-06 17:30:25 UTC (rev 66367)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs    
2006-10-06 17:37:45 UTC (rev 66368)
@@ -90,7 +90,7 @@
                        protected override void WndProc(ref Message m) {
                                switch((Msg)m.Msg) {
                                        case Msg.WM_NCPAINT: {
-                                               PaintEventArgs  paint_event;
+                                               PaintEventArgs  paint_event;
 
                                                paint_event = 
XplatUI.PaintEventStart(Handle, false);
                                                OnPaintInternal (paint_event);
@@ -213,7 +213,7 @@
                        }
 
                        private void HandleMouseUp(object sender, 
MouseEventArgs e) {
-                               if (owner.context_menu != null) {
+                               if ((e.Button & MouseButtons.Right) == 
MouseButtons.Right && owner.context_menu != null) {
                                        owner.context_menu.Show(this, new 
Point(e.X, e.Y));
                                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to