git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47323
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_GENERIC_PRIVATE_TIMER_H_
#define _WX_GENERIC_PRIVATE_TIMER_H_
#ifndef _WX_GENERIC_PRIVATE_TIMER_H_
#define _WX_GENERIC_PRIVATE_TIMER_H_
#include "wx/private/timer.h"
//-----------------------------------------------------------------------------
#include "wx/private/timer.h"
//-----------------------------------------------------------------------------
#endif // _WX_GENERIC_PRIVATE_TIMER_H_
#endif // _WX_GENERIC_PRIVATE_TIMER_H_
#ifndef _WX_GTK_PRIVATE_TIMER_H_
#define _WX_GTK_PRIVATE_TIMER_H_
#ifndef _WX_GTK_PRIVATE_TIMER_H_
#define _WX_GTK_PRIVATE_TIMER_H_
#include "wx/private/timer.h"
//-----------------------------------------------------------------------------
#include "wx/private/timer.h"
//-----------------------------------------------------------------------------
#endif // _WX_GTK_PRIVATE_TIMER_H_
#endif // _WX_GTK_PRIVATE_TIMER_H_
#ifndef _WX_UNIX_PRIVATE_TIMER_H_
#define _WX_UNIX_PRIVATE_TIMER_H_
#ifndef _WX_UNIX_PRIVATE_TIMER_H_
#define _WX_UNIX_PRIVATE_TIMER_H_
#include "wx/private/timer.h"
// the type used for milliseconds is large enough for microseconds too but
#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();
// returns the number of microseconds since the Epoch
extern wxUsecClock_t wxGetLocalTimeUsec();
#endif // _WX_UNIX_PRIVATE_TIMER_H_
#endif // _WX_UNIX_PRIVATE_TIMER_H_
wxTimerImpl *wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
{
return new wxGTKTimerImpl(timer);
}
wxTimerImpl *wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
{
return new wxGTKTimerImpl(timer);
}
#if wxUSE_DETECT_SM
static wxString GetSM()
{
#if wxUSE_DETECT_SM
static wxString GetSM()
{
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
wxString de = wxSystemOptions::GetOption(_T("gtk.desktop"));
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
wxString de = wxSystemOptions::GetOption(_T("gtk.desktop"));
static const wxString s_SM = GetSM();
if (s_SM == wxT("GnomeSM"))
static const wxString s_SM = GetSM();
if (s_SM == wxT("GnomeSM"))
#include "wx/unix/execute.h"
#include "wx/evtloop.h"
#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>
// for waitpid()
#include <sys/types.h>
#include "wx/unix/private/epolldispatcher.h"
#include "wx/private/selectdispatcher.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")
#define TRACE_EVENTS _T("events")
#endif
// Various X11 Atoms used in this file:
#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;
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:
// ----------------------------------------------------------------------------
// 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)
{
void
wxSetIconsX11(WXDisplay* display, WXWindow window, const wxIconBundle& ib)
{
size_t size = 0;
const size_t numIcons = ib.GetIconCount();
size_t size = 0;
const size_t numIcons = ib.GetIconCount();
WindowCast(window),
_NET_WM_ICON );
}
WindowCast(window),
_NET_WM_ICON );
}
+#endif // wxUSE_IMAGE && !wxUSE_NANOX
// ----------------------------------------------------------------------------
// Fullscreen mode:
// ----------------------------------------------------------------------------
// Fullscreen mode: