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,
- flags & wxCONTROL_DISABLED ? GTK_STATE_INSENSITIVE : GTK_STATE_NORMAL,
+ state,
GTK_SHADOW_OUT,
NULL,
button,
if ( isVert )
{
- int h = win->GetClientSize().GetHeight();
-
rect.x = position;
rect.y = 0;
rect.width = full_size;
- rect.height = h;
+ rect.height = size.y;
}
else // horz
{
- int w = win->GetClientSize().GetWidth();
-
rect.x = 0;
rect.y = position;
rect.height = full_size;
- rect.width = w;
+ rect.width = size.x;
}
int x_diff = 0;
state = GTK_STATE_NORMAL;
}
- if (flags & wxCONTROL_CURRENT)
+ if ((flags & wxCONTROL_CURRENT) && (flags & wxCONTROL_FOCUSED))
{
gtk_paint_focus( win->m_widget->style,
gdk_window,