Avoid some deprecation warnings from GTK2 headers

This commit is contained in:
Paul Cornett 2020-04-19 11:09:09 -07:00
parent 6bafaeee6f
commit 8649f2548e
3 changed files with 9 additions and 1 deletions

View File

@ -143,10 +143,12 @@ protected:
#elif defined(__WXGTK__)
// Avoid a bunch of warnings from gtk.h for some GTK+ 3 versions.
// Avoid a bunch of warnings from gtk.h for some GTK+ versions.
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
wxGCC_WARNING_SUPPRESS(parentheses)
#include <gtk/gtk.h>
wxGCC_WARNING_RESTORE(parentheses)
wxGCC_WARNING_RESTORE(deprecated-declarations)
class NativeWindow : public wxNativeWindow
{

View File

@ -109,6 +109,7 @@ Anders
#if wxUSE_TASKBARICON
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include <gtk/gtk.h>
#if GTK_CHECK_VERSION(2, 1, 0)

View File

@ -13,6 +13,11 @@ typedef pid_t GPid;
#define GSEAL(x) x
#endif
#include "wx/setup.h"
#ifndef __WXGTK3__
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#endif
#include "wx/gtk/private/treeentry_gtk.h"
/*