timer no longer returns IsRunning() after a

one shot timer has fired.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2003-04-27 21:18:17 +00:00
parent b80ff307a1
commit e9e466c134
2 changed files with 10 additions and 0 deletions

View File

@@ -41,7 +41,12 @@ extern "C" gint timeout_callback( gpointer data )
gdk_threads_leave(); gdk_threads_leave();
if ( timer->IsOneShot() ) if ( timer->IsOneShot() )
{
// This sets m_tag to -1
timer->Stop();
return FALSE; return FALSE;
}
return TRUE; return TRUE;
} }

View File

@@ -41,7 +41,12 @@ extern "C" gint timeout_callback( gpointer data )
gdk_threads_leave(); gdk_threads_leave();
if ( timer->IsOneShot() ) if ( timer->IsOneShot() )
{
// This sets m_tag to -1
timer->Stop();
return FALSE; return FALSE;
}
return TRUE; return TRUE;
} }