]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/chkconf.h
Document wxKill(wxSIGTERM) reliance on having an open window in wxMSW.
[wxWidgets.git] / include / wx / gtk / chkconf.h
CommitLineData
6619edf0
VZ
1/*
2 * Name: wx/gtk/chkconf.h
3 * Purpose: wxGTK-specific settings consistency checks
4 * Author: Vadim Zeitlin
5 * Created: 2007-07-19 (extracted from wx/chkconf.h)
6 * RCS-ID: $Id$
7 * Copyright: (c) 2000-2007 Vadim Zeitlin <vadim@wxwidgets.org>
8 * Licence: wxWindows licence
9 */
10
11#ifndef __WXUNIVERSAL__
12# if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
13# ifdef wxABORT_ON_CONFIG_ERROR
14# error "MDI requires wxUSE_MENUS in wxGTK"
15# else
16# undef wxUSE_MENUS
17# define wxUSE_MENUS 1
18# endif
19# endif
20#endif /* !__WXUNIVERSAL__ */
21
22#if wxUSE_JOYSTICK
23# if !wxUSE_THREADS
24# ifdef wxABORT_ON_CONFIG_ERROR
25# error "wxJoystick requires threads in wxGTK"
26# else
27# undef wxUSE_JOYSTICK
28# define wxUSE_JOYSTICK 0
29# endif
30# endif
31#endif /* wxUSE_JOYSTICK */
54f59b00
VZ
32
33#if wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
34# undef wxUSE_POSTSCRIPT
35# define wxUSE_POSTSCRIPT 1
36#endif
37
38#if wxUSE_OWNER_DRAWN
39# undef wxUSE_OWNER_DRAWN
40# define wxUSE_OWNER_DRAWN 0
41#endif
42
43#if wxUSE_METAFILE
44# undef wxUSE_METAFILE
45# define wxUSE_METAFILE 0
46#endif
47
ad653fa2
VZ
48#if wxUSE_ENH_METAFILE
49# undef wxUSE_ENH_METAFILE
50# define wxUSE_ENH_METAFILE 0
51#endif
52
54f59b00
VZ
53#ifndef __UNIX__
54
55# undef wxUSE_WEBVIEW
56# define wxUSE_WEBVIEW 0
57# undef wxUSE_WEBVIEW_WEBKIT
58# define wxUSE_WEBVIEW_WEBKIT 0
59
60# undef wxUSE_MEDIACTRL
61# define wxUSE_MEDIACTRL 0
62
9597d39a
VZ
63 /*
64 We could use GDK_WINDOWING_X11 for those but this would require
65 including gdk/gdk.h and we don't want to do it from here, so assume
66 we're not using X11 if we're not under Unix.
67 */
54f59b00
VZ
68
69# undef wxUSE_UIACTIONSIMULATOR
70# define wxUSE_UIACTIONSIMULATOR 0
71
72# undef wxUSE_GLCANVAS
73# define wxUSE_GLCANVAS 0
74
75#endif /* __UNIX__ */
76
9597d39a
VZ
77/*
78 We always need Cairo with wxGTK, enable it if necessary (this can only
79 happen under Windows).
80 */
54f59b00
VZ
81#ifdef __WINDOWS__
82
83#if !wxUSE_CAIRO
84# undef wxUSE_CAIRO
85# define wxUSE_CAIRO 1
86#endif
87
88#endif /* __WINDOWS__ */
9dc44eff
PC
89
90#ifdef __WXGTK3__
91 #if !wxUSE_GRAPHICS_CONTEXT
92 #ifdef wxABORT_ON_CONFIG_ERROR
93 #error "GTK+ 3 support requires wxGraphicsContext"
94 #else
95 #undef wxUSE_GRAPHICS_CONTEXT
96 #define wxUSE_GRAPHICS_CONTEXT 1
97 #endif
98 #endif
99#endif