X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54f59b007e3883bc97842eff008c54e27c3f8243..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/gtk/chkconf.h diff --git a/include/wx/gtk/chkconf.h b/include/wx/gtk/chkconf.h index 6715f824da..9897ebd352 100644 --- a/include/wx/gtk/chkconf.h +++ b/include/wx/gtk/chkconf.h @@ -55,9 +55,11 @@ # undef wxUSE_MEDIACTRL # define wxUSE_MEDIACTRL 0 - // We could use GDK_WINDOWING_X11 for those but this would require - // including gdk/gdk.h and we don't want to do it from here, so assume - // we're not using X11 if we're not under Unix. + /* + We could use GDK_WINDOWING_X11 for those but this would require + including gdk/gdk.h and we don't want to do it from here, so assume + we're not using X11 if we're not under Unix. + */ # undef wxUSE_UIACTIONSIMULATOR # define wxUSE_UIACTIONSIMULATOR 0 @@ -67,8 +69,10 @@ #endif /* __UNIX__ */ -// We always need Cairo with wxGTK, enable it if necessary (this can only -// happen under Windows). +/* + We always need Cairo with wxGTK, enable it if necessary (this can only + happen under Windows). + */ #ifdef __WINDOWS__ #if !wxUSE_CAIRO @@ -77,3 +81,14 @@ #endif #endif /* __WINDOWS__ */ + +#ifdef __WXGTK3__ + #if !wxUSE_GRAPHICS_CONTEXT + #ifdef wxABORT_ON_CONFIG_ERROR + #error "GTK+ 3 support requires wxGraphicsContext" + #else + #undef wxUSE_GRAPHICS_CONTEXT + #define wxUSE_GRAPHICS_CONTEXT 1 + #endif + #endif +#endif