2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Tue, 13 May 2008 06:49:06 +0000 (06:49 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Tue, 13 May 2008 06:49:06 +0000 (06:49 -0000)
commit2718d7eb50df525c5b14ee27d3d74f02c0e3ef51
treefbe19e02167688d148464b6be3db130858057a66
parentb0e1b27c90ac0c7fc00d4ea1ddfa9b3c9dbb2a39
2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>

        * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
          XplatUIX11.cs, XplatUIWin32.cs :
          fix for bug #325033 and #387693;
          - WM_QUIT should not be sent when no running application
            exists.
          - SetTimer/KillTimer (especially on win32) should be
            invoked for the window that the timer is/will_be attached.
          - There could be unattached timers to a window when it's
            started. For those timers, hold pending timers and when
            a window is mapped, attach them to it.
          - WaitForHwndMessage() could run into loop when
            WM_SHOWWINDOW is handled before this method is called.
            So, strictly check wm_showwindow state.
          - Tick handler should not be invoked while one Tick handler
            call is still running (introduced Busy state).

        * TimerTest.cs : added test for bug #325033.

svn path=/trunk/mcs/; revision=103059
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ApplicationContext.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Timer.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TimerTest.cs