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
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
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
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))
#ifndef _GTK_PRIVATE_MSGTYPE_H_
#define _GTK_PRIVATE_MSGTYPE_H_
-#include <gtk/gtkmessagedialog.h>
+#include <gtk/gtk.h>
namespace wxGTKImpl
{
#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())
/* For FILE */
#include <stdio.h>
-#include <gtk/gtkexpander.h>
-
/* ----------------------------------------------------------------------------
Constants
#if wxUSE_TASKBARICON
-#include <gtk/gtkversion.h>
+#include <gtk/gtk.h>
#if GTK_CHECK_VERSION(2, 1, 0)
#include <string.h>
#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
#include "wx/paper.h"
#include <gtk/gtk.h>
-#include <gtk/gtkpagesetupunixdialog.h>
+#include <gtk/gtkunixprint.h>
#if wxUSE_GRAPHICS_CONTEXT
#include "wx/graphics.h"