#include "wx/unix/utilsx11.h"
#endif
+#include "wx/gtk/private/gtk2-compat.h"
+
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// misc.
//----------------------------------------------------------------------------
-#ifndef __EMX__
-// on OS/2, we use the wxBell from wxBase library
void wxBell()
{
gdk_beep();
}
-#endif
// ----------------------------------------------------------------------------
-// display characterstics
+// display characteristics
// ----------------------------------------------------------------------------
+#ifdef GDK_WINDOWING_X11
void *wxGetDisplay()
{
- return GDK_DISPLAY();
+ return GDK_DISPLAY_XDISPLAY(gtk_widget_get_display(wxGetRootWindow()));
}
+#endif
void wxDisplaySize( int *width, int *height )
{
int wxDisplayDepth()
{
- return gtk_widget_get_visual(wxGetRootWindow())->depth;
+ return gdk_visual_get_depth(gtk_widget_get_visual(wxGetRootWindow()));
}
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
// added in pango-1.4 or earlier since GTK 2.4 (our minimum requirement
// for GTK lib) required pango 1.4...
-#ifdef PANGO_VERSION_MAJOR
+#ifdef __WXGTK3__
+ return pango_version_check(major, minor, micro);
+#elif defined(PANGO_VERSION_MAJOR)
if (!gtk_check_version (2,11,0))
{
// GTK+ 2.11 requires Pango >= 1.15.3 and pango_version_check
#endif
}
-
// ----------------------------------------------------------------------------
// subprocess routines
// ----------------------------------------------------------------------------
#if wxUSE_INTL && defined(__UNIX__)
void wxGUIAppTraits::SetLocale()
{
+#ifdef __WXGTK3__
+ setlocale(LC_ALL, "");
+#else
gtk_set_locale();
+#endif
wxUpdateLocaleIsUtf8();
}
#endif
wxString usage;
#ifdef __WXGTK26__
+#ifndef __WXGTK3__
if (!gtk_check_version(2,6,0))
+#endif
{
// since GTK>=2.6, we can use the glib_check_version() symbol...