Avoid some deprecation warnings from GTK2 headers
This commit is contained in:
parent
6bafaeee6f
commit
8649f2548e
@ -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
|
||||
{
|
||||
|
@ -109,6 +109,7 @@ Anders
|
||||
|
||||
#if wxUSE_TASKBARICON
|
||||
|
||||
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||
#include <gtk/gtk.h>
|
||||
#if GTK_CHECK_VERSION(2, 1, 0)
|
||||
|
||||
|
@ -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"
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user