X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/924ef85080e1b257900110f0c3298a8c19acaeab..e6adf05834e880312efa3d59914ecc1d4f5f78a6:/src/gtk1/timer.cpp diff --git a/src/gtk1/timer.cpp b/src/gtk1/timer.cpp index 175c92aa12..f8531ba81c 100644 --- a/src/gtk1/timer.cpp +++ b/src/gtk1/timer.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: timer.cpp -// Purpose: +// Name: gtk/timer.cpp +// Purpose: wxTimer implementation // Author: Robert Roebling // Id: $Id$ // Copyright: (c) 1998 Robert Roebling @@ -12,15 +12,19 @@ #pragma implementation "timer.h" #endif +#include "wx/defs.h" + +#if wxUSE_TIMER + #include "wx/timer.h" #include "gtk/gtk.h" -//----------------------------------------------------------------------------- +// ---------------------------------------------------------------------------- // wxTimer -//----------------------------------------------------------------------------- +// ---------------------------------------------------------------------------- -IMPLEMENT_ABSTRACT_CLASS(wxTimer,wxObject) +IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject) static gint timeout_callback( gpointer data ) { @@ -42,11 +46,10 @@ static gint timeout_callback( gpointer data ) return TRUE; } -wxTimer::wxTimer() +void wxTimer::Init() { m_tag = -1; m_milli = 1000; - m_oneShot = FALSE; } wxTimer::~wxTimer() @@ -72,3 +75,5 @@ void wxTimer::Stop() } } +#endif // wxUSE_TIMER +