Avoid many -Wparentheses warnings from gtk/gtk.h with gcc8

Add wx/gtk/private/wrapgtk.h wrapping gtk/gtk.h in pragmas disabling
these warnings and include it everywhere instead of directly including
gtk/gtk.h.

Also include wx/gtk/private/gtk2-compat.h from this wrapper header as it
was included by 90% of the files including gtk/gtk.h itself and it seems
to be better and simpler to just always include it.
This commit is contained in:
Vadim Zeitlin
2018-05-20 18:43:16 +02:00
parent 8401d3fec9
commit c0b0562533
86 changed files with 79 additions and 164 deletions

View File

@@ -25,7 +25,7 @@
#include "wx/gtk/private/timer.h"
#include "wx/evtloop.h"
#include <gtk/gtk.h>
#include "wx/gtk/private/wrapgtk.h"
#ifdef GDK_WINDOWING_WIN32
#include <gdk/gdkwin32.h>
#endif
@@ -54,8 +54,6 @@
#include "wx/unix/utilsx11.h"
#endif
#include "wx/gtk/private/gtk2-compat.h"
GdkWindow* wxGetTopLevelGDK();
//----------------------------------------------------------------------------