Don't directly include GTK+ semi-public headers.
Only the main headers (e.g. gtk/gtk.h) should be included and GTK+ 3 is strict about this. Enable compile-time checks for this that work with GTK+ 2.24. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
3
configure
vendored
3
configure
vendored
@@ -30954,6 +30954,9 @@ done
|
||||
|
||||
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
|
||||
|
||||
GTK_CHECKS_FLAGS="-DGTK_DISABLE_SINGLE_INCLUDES"
|
||||
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $GTK_CHECKS_FLAGS"
|
||||
|
||||
AFMINSTALL=afminstall
|
||||
TOOLKIT=GTK
|
||||
GUIDIST=GTK_DIST
|
||||
|
@@ -3101,6 +3101,10 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
|
||||
dnl disable GTK runtime type checks
|
||||
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
|
||||
|
||||
dnl enable useful GTK+ compile-time checks to ease transition to GTK+ 3:
|
||||
GTK_CHECKS_FLAGS="-DGTK_DISABLE_SINGLE_INCLUDES"
|
||||
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $GTK_CHECKS_FLAGS"
|
||||
|
||||
AFMINSTALL=afminstall
|
||||
TOOLKIT=GTK
|
||||
GUIDIST=GTK_DIST
|
||||
|
@@ -14,8 +14,7 @@
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <gtk/gtkdialog.h>
|
||||
#include <gtk/gtklabel.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define GTK_TYPE_ASSERT_DIALOG (gtk_assert_dialog_get_type ())
|
||||
#define GTK_ASSERT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ASSERT_DIALOG, GtkAssertDialog))
|
||||
|
@@ -11,7 +11,7 @@
|
||||
#ifndef _GTK_PRIVATE_MSGTYPE_H_
|
||||
#define _GTK_PRIVATE_MSGTYPE_H_
|
||||
|
||||
#include <gtk/gtkmessagedialog.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
namespace wxGTKImpl
|
||||
{
|
||||
|
@@ -10,7 +10,7 @@
|
||||
#ifndef _WX_GTK_PIZZA_H_
|
||||
#define _WX_GTK_PIZZA_H_
|
||||
|
||||
#include <gtk/gtkfixed.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define WX_PIZZA(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, wxPizza::type(), wxPizza)
|
||||
#define WX_IS_PIZZA(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, wxPizza::type())
|
||||
|
@@ -23,8 +23,6 @@ extern "C" {
|
||||
/* For FILE */
|
||||
#include <stdio.h>
|
||||
|
||||
#include <gtk/gtkexpander.h>
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
Constants
|
||||
|
@@ -109,7 +109,7 @@ Anders
|
||||
|
||||
#if wxUSE_TASKBARICON
|
||||
|
||||
#include <gtk/gtkversion.h>
|
||||
#include <gtk/gtk.h>
|
||||
#if GTK_CHECK_VERSION(2, 1, 0)
|
||||
|
||||
#include <string.h>
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#ifndef __EGG_TRAY_ICON_H__
|
||||
#define __EGG_TRAY_ICON_H__
|
||||
|
||||
#include <gtk/gtkplug.h>
|
||||
#include <gtk/gtk.h>
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
#include <gdk/gdkx.h>
|
||||
#endif
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#include "wx/paper.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gtk/gtkpagesetupunixdialog.h>
|
||||
#include <gtk/gtkunixprint.h>
|
||||
|
||||
#if wxUSE_GRAPHICS_CONTEXT
|
||||
#include "wx/graphics.h"
|
||||
|
Reference in New Issue
Block a user