diff options
Diffstat (limited to 'modules/engines/ms-windows/msw_style.c')
-rwxr-xr-x | modules/engines/ms-windows/msw_style.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c index f1e3c99662..536e7b576a 100755 --- a/modules/engines/ms-windows/msw_style.c +++ b/modules/engines/ms-windows/msw_style.c @@ -2902,7 +2902,16 @@ draw_flat_box (GtkStyle *style, GdkWindow *window, { if (detail) { - if (!strcmp (detail, "checkbutton")) + if (state_type == GTK_STATE_SELECTED && + (!strncmp ("cell_even", detail, 9) || !strncmp ("cell_odd", detail, 8))) + { + GdkGC *gc = GTK_WIDGET_HAS_FOCUS (widget) ? style->base_gc[state_type] : style->base_gc[GTK_STATE_ACTIVE]; + + gdk_draw_rectangle (window, gc, TRUE, x, y, width, height); + + return; + } + else if (!strcmp (detail, "checkbutton")) { if (state_type == GTK_STATE_PRELIGHT) { |