git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49255
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (win->GetLayoutDirection() == wxLayout_RightToLeft)
x_diff = rect.width;
if (win->GetLayoutDirection() == wxLayout_RightToLeft)
x_diff = rect.width;
+ GtkStateType state = GTK_STATE_NORMAL;
+ if (flags & wxCONTROL_DISABLED)
+ state = GTK_STATE_INSENSITIVE;
+ else
+ {
+ if (flags & wxCONTROL_CURRENT)
+ state = GTK_STATE_PRELIGHT;
+ }
+
gtk_paint_box
(
button->style,
gdk_window,
gtk_paint_box
(
button->style,
gdk_window,
- flags & wxCONTROL_DISABLED ? GTK_STATE_INSENSITIVE : GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
NULL,
button,
GTK_SHADOW_OUT,
NULL,
button,