|
Jeremy Newton |
359a25b |
diff -rupN wxWidgets-3.0.2-orig/src/gtk/renderer.cpp wxWidgets-3.0.2/src/gtk/renderer.cpp
|
|
Jeremy Newton |
359a25b |
--- wxWidgets-3.0.2-orig/src/gtk/renderer.cpp 2015-11-05 19:57:31.075151404 -0500
|
|
Jeremy Newton |
359a25b |
+++ wxWidgets-3.0.2/src/gtk/renderer.cpp 2015-11-05 20:37:56.230764763 -0500
|
|
Jeremy Newton |
359a25b |
@@ -41,6 +41,10 @@
|
|
Jeremy Newton |
359a25b |
#include "wx/gtk/private.h"
|
|
Jeremy Newton |
359a25b |
#include "wx/gtk/private/gtk2-compat.h"
|
|
Jeremy Newton |
359a25b |
|
|
Jeremy Newton |
359a25b |
+#if defined(__WXGTK3__) && !GTK_CHECK_VERSION(3,14,0)
|
|
Jeremy Newton |
359a25b |
+ #define GTK_STATE_FLAG_CHECKED (1 << 11)
|
|
Jeremy Newton |
359a25b |
+#endif
|
|
Jeremy Newton |
359a25b |
+
|
|
Jeremy Newton |
359a25b |
// ----------------------------------------------------------------------------
|
|
Jeremy Newton |
359a25b |
// wxRendererGTK: our wxRendererNative implementation
|
|
Jeremy Newton |
359a25b |
// ----------------------------------------------------------------------------
|
|
Jeremy Newton |
359a25b |
@@ -551,7 +555,11 @@ wxRendererGTK::DrawCheckBox(wxWindow* wi
|
|
Jeremy Newton |
359a25b |
{
|
|
Jeremy Newton |
359a25b |
int stateFlags = GTK_STATE_FLAG_NORMAL;
|
|
Jeremy Newton |
359a25b |
if (flags & wxCONTROL_CHECKED)
|
|
Jeremy Newton |
359a25b |
+ {
|
|
Jeremy Newton |
359a25b |
stateFlags = GTK_STATE_FLAG_ACTIVE;
|
|
Jeremy Newton |
359a25b |
+ if (gtk_check_version(3,14,0) == NULL)
|
|
Jeremy Newton |
359a25b |
+ stateFlags = GTK_STATE_FLAG_CHECKED;
|
|
Jeremy Newton |
359a25b |
+ }
|
|
Jeremy Newton |
359a25b |
if (flags & wxCONTROL_DISABLED)
|
|
Jeremy Newton |
359a25b |
stateFlags |= GTK_STATE_FLAG_INSENSITIVE;
|
|
Jeremy Newton |
359a25b |
if (flags & wxCONTROL_UNDETERMINED)
|
|
Jeremy Newton |
359a25b |
@@ -866,7 +874,11 @@ void wxRendererGTK::DrawRadioBitmap(wxWi
|
|
Jeremy Newton |
359a25b |
#ifdef __WXGTK3__
|
|
Jeremy Newton |
359a25b |
int state = GTK_STATE_FLAG_NORMAL;
|
|
Jeremy Newton |
359a25b |
if (flags & wxCONTROL_CHECKED)
|
|
Jeremy Newton |
359a25b |
+ {
|
|
Jeremy Newton |
359a25b |
state = GTK_STATE_FLAG_ACTIVE;
|
|
Jeremy Newton |
359a25b |
+ if (gtk_check_version(3,14,0) == NULL)
|
|
Jeremy Newton |
359a25b |
+ state = GTK_STATE_FLAG_CHECKED;
|
|
Jeremy Newton |
359a25b |
+ }
|
|
Jeremy Newton |
359a25b |
else if (flags & wxCONTROL_UNDETERMINED)
|
|
Jeremy Newton |
359a25b |
state = GTK_STATE_FLAG_INCONSISTENT;
|
|
Jeremy Newton |
359a25b |
if (flags & wxCONTROL_DISABLED)
|