Merge branch 'wrap-gtk.h'

Add a wrapper for gtk/gtk.h allowing to avoid gcc 8 warnings when
including the GTK+ header directly.

See https://github.com/wxWidgets/wxWidgets/pull/814
This commit is contained in:
Vadim Zeitlin
2018-05-31 01:28:40 +02:00
87 changed files with 75 additions and 164 deletions

View File

@@ -34,9 +34,8 @@
#include "wx/vector.h" // wxVector<wxString>
#ifdef __WXGTK__
#include <gtk/gtk.h>
#include "wx/gtk/private/wrapgtk.h"
#include <gdk/gdkx.h>
#include "wx/gtk/private/gtk2-compat.h"
#endif
//-----------------------------------------------------------------------------

View File

@@ -28,9 +28,8 @@
#include "wx/vector.h" // wxVector<wxString>
#ifdef __WXGTK__
#include <gtk/gtk.h>
#include "wx/gtk/private/wrapgtk.h"
#include <gdk/gdkx.h>
#include "wx/gtk/private/gtk2-compat.h"
#endif
//=============================================================================

View File

@@ -64,7 +64,7 @@
// ----------------------------------------------------------------------------
#if defined(__WXGTK__)
#include <gtk/gtk.h>
#include "wx/gtk/private/wrapgtk.h"
#include <gdk/gdkx.h>
#define GetDisplay() GDK_DISPLAY()
#define GetXWindow(wxwin) GDK_WINDOW_XWINDOW((wxwin)->m_widget->window)

View File

@@ -28,7 +28,7 @@
#include "wx/unix/utilsx11.h"
#ifdef __WXGTK3__
#include <gtk/gtk.h>
#include "wx/gtk/private/wrapgtk.h"
GtkWidget* wxGetTopLevelGTK();
#endif

View File

@@ -37,12 +37,9 @@
#endif
#ifdef __WXGTK__
#include <gtk/gtk.h>
#include "wx/gtk/private/wrapgtk.h"
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#ifdef __WXGTK20__
#include "wx/gtk/private/gtk2-compat.h" // gdk_window_get_screen()
#endif
#endif
GdkWindow* wxGetTopLevelGDK();
GtkWidget* wxGetTopLevelGTK();