Avoid some deprecation warnings from GTK2 headers
This commit is contained in:
@@ -143,10 +143,12 @@ protected:
|
|||||||
|
|
||||||
#elif defined(__WXGTK__)
|
#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)
|
wxGCC_WARNING_SUPPRESS(parentheses)
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
wxGCC_WARNING_RESTORE(parentheses)
|
wxGCC_WARNING_RESTORE(parentheses)
|
||||||
|
wxGCC_WARNING_RESTORE(deprecated-declarations)
|
||||||
|
|
||||||
class NativeWindow : public wxNativeWindow
|
class NativeWindow : public wxNativeWindow
|
||||||
{
|
{
|
||||||
|
@@ -109,6 +109,7 @@ Anders
|
|||||||
|
|
||||||
#if wxUSE_TASKBARICON
|
#if wxUSE_TASKBARICON
|
||||||
|
|
||||||
|
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#if GTK_CHECK_VERSION(2, 1, 0)
|
#if GTK_CHECK_VERSION(2, 1, 0)
|
||||||
|
|
||||||
|
@@ -13,6 +13,11 @@ typedef pid_t GPid;
|
|||||||
#define GSEAL(x) x
|
#define GSEAL(x) x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
#ifndef __WXGTK3__
|
||||||
|
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/gtk/private/treeentry_gtk.h"
|
#include "wx/gtk/private/treeentry_gtk.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user