// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
#ifndef _WX_GENERIC_PRIVATE_TIMER_H_
#define _WX_GENERIC_PRIVATE_TIMER_H_
+#if wxUSE_TIMER
+
#include "wx/private/timer.h"
//-----------------------------------------------------------------------------
wxTimerDesc *m_desc;
};
+#endif // wxUSE_TIMER
+
#endif // _WX_GENERIC_PRIVATE_TIMER_H_
#ifndef _WX_GTK_PRIVATE_TIMER_H_
#define _WX_GTK_PRIVATE_TIMER_H_
+#if wxUSE_TIMER
+
#include "wx/private/timer.h"
//-----------------------------------------------------------------------------
int m_sourceId;
};
+#endif // wxUSE_TIMER
+
#endif // _WX_GTK_PRIVATE_TIMER_H_
#ifndef _WX_UNIX_PRIVATE_TIMER_H_
#define _WX_UNIX_PRIVATE_TIMER_H_
+#if wxUSE_TIMER
+
#include "wx/private/timer.h"
// the type used for milliseconds is large enough for microseconds too but
// returns the number of microseconds since the Epoch
extern wxUsecClock_t wxGetLocalTimeUsec();
+#endif // wxUSE_TIMER
+
#endif // _WX_UNIX_PRIVATE_TIMER_H_
return wxPORT_GTK;
}
+#if wxUSE_TIMER
+
wxTimerImpl *wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
{
return new wxGTKTimerImpl(timer);
}
+#endif // wxUSE_TIMER
+
#if wxUSE_DETECT_SM
static wxString GetSM()
{
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
wxString de = wxSystemOptions::GetOption(_T("gtk.desktop"));
+#if wxUSE_DETECT_SM
if ( de.empty() )
{
-#if wxUSE_DETECT_SM
static const wxString s_SM = GetSM();
if (s_SM == wxT("GnomeSM"))
#include "wx/unix/execute.h"
#include "wx/evtloop.h"
-#if wxUSE_TIMER
- #include "wx/unix/private/timer.h"
-#endif // wxUSE_TIMER
+#include "wx/unix/private/timer.h"
// for waitpid()
#include <sys/types.h>
#include "wx/unix/private/epolldispatcher.h"
#include "wx/private/selectdispatcher.h"
-#if wxUSE_TIMER
- #include "wx/generic/private/timer.h"
-#endif
+#include "wx/generic/private/timer.h"
#define TRACE_EVENTS _T("events")
#endif
// Various X11 Atoms used in this file:
-static Atom _NET_WM_ICON = 0;
static Atom _NET_WM_STATE = 0;
static Atom _NET_WM_STATE_FULLSCREEN = 0;
static Atom _NET_WM_STATE_STAYS_ON_TOP = 0;
// Setting icons for window manager:
// ----------------------------------------------------------------------------
+#if wxUSE_IMAGE && !wxUSE_NANOX
+
+static Atom _NET_WM_ICON = 0;
+
void
wxSetIconsX11(WXDisplay* display, WXWindow window, const wxIconBundle& ib)
{
-#if !wxUSE_NANOX
size_t size = 0;
const size_t numIcons = ib.GetIconCount();
WindowCast(window),
_NET_WM_ICON );
}
-#endif // !wxUSE_NANOX
}
+#endif // wxUSE_IMAGE && !wxUSE_NANOX
// ----------------------------------------------------------------------------
// Fullscreen mode: