]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/chkconf.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / gtk / chkconf.h
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 * Copyright: (c) 2000-2007 Vadim Zeitlin <vadim@wxwidgets.org>
7 * Licence: wxWindows licence
8 */
9
10 #ifndef __WXUNIVERSAL__
11 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
12 # ifdef wxABORT_ON_CONFIG_ERROR
13 # error "MDI requires wxUSE_MENUS in wxGTK"
14 # else
15 # undef wxUSE_MENUS
16 # define wxUSE_MENUS 1
17 # endif
18 # endif
19 #endif /* !__WXUNIVERSAL__ */
20
21 #if wxUSE_JOYSTICK
22 # if !wxUSE_THREADS
23 # ifdef wxABORT_ON_CONFIG_ERROR
24 # error "wxJoystick requires threads in wxGTK"
25 # else
26 # undef wxUSE_JOYSTICK
27 # define wxUSE_JOYSTICK 0
28 # endif
29 # endif
30 #endif /* wxUSE_JOYSTICK */
31
32 #if wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
33 # undef wxUSE_POSTSCRIPT
34 # define wxUSE_POSTSCRIPT 1
35 #endif
36
37 #if wxUSE_OWNER_DRAWN
38 # undef wxUSE_OWNER_DRAWN
39 # define wxUSE_OWNER_DRAWN 0
40 #endif
41
42 #if wxUSE_METAFILE
43 # undef wxUSE_METAFILE
44 # define wxUSE_METAFILE 0
45 #endif
46
47 #if wxUSE_ENH_METAFILE
48 # undef wxUSE_ENH_METAFILE
49 # define wxUSE_ENH_METAFILE 0
50 #endif
51
52 #ifndef __UNIX__
53
54 # undef wxUSE_WEBVIEW
55 # define wxUSE_WEBVIEW 0
56 # undef wxUSE_WEBVIEW_WEBKIT
57 # define wxUSE_WEBVIEW_WEBKIT 0
58
59 # undef wxUSE_MEDIACTRL
60 # define wxUSE_MEDIACTRL 0
61
62 /*
63 We could use GDK_WINDOWING_X11 for those but this would require
64 including gdk/gdk.h and we don't want to do it from here, so assume
65 we're not using X11 if we're not under Unix.
66 */
67
68 # undef wxUSE_UIACTIONSIMULATOR
69 # define wxUSE_UIACTIONSIMULATOR 0
70
71 # undef wxUSE_GLCANVAS
72 # define wxUSE_GLCANVAS 0
73
74 #endif /* __UNIX__ */
75
76 /*
77 We always need Cairo with wxGTK, enable it if necessary (this can only
78 happen under Windows).
79 */
80 #ifdef __WINDOWS__
81
82 #if !wxUSE_CAIRO
83 # undef wxUSE_CAIRO
84 # define wxUSE_CAIRO 1
85 #endif
86
87 #endif /* __WINDOWS__ */
88
89 #ifdef __WXGTK3__
90 #if !wxUSE_GRAPHICS_CONTEXT
91 #ifdef wxABORT_ON_CONFIG_ERROR
92 #error "GTK+ 3 support requires wxGraphicsContext"
93 #else
94 #undef wxUSE_GRAPHICS_CONTEXT
95 #define wxUSE_GRAPHICS_CONTEXT 1
96 #endif
97 #endif
98 #endif