fix bug 852354

This commit is contained in:
cinamod 2003-12-30 16:44:40 +00:00
parent 700335123a
commit 7b61ec8c3b
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-12-30 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix bug 852354 to my liking
2003-12-01 Dom Lachowicz <cinamod@hotmail.com> 2003-12-01 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix coloration for the expander's +/- part. Was * src/wimp_style.c: Fix coloration for the expander's +/- part. Was

View File

@ -1383,7 +1383,7 @@ draw_box (GtkStyle *style,
/* Blank in classic Windows */ /* Blank in classic Windows */
} }
} }
else else if (widget && GTK_IS_SCROLLBAR(widget))
{ {
gboolean is_vertical = GTK_IS_VSCROLLBAR(widget); gboolean is_vertical = GTK_IS_VSCROLLBAR(widget);
@ -1430,6 +1430,20 @@ draw_box (GtkStyle *style,
return; return;
} }
} }
else if (widget && GTK_IS_SCALE(widget))
{
gboolean is_vertical = GTK_IS_VSCALE(widget);
parent_class->draw_box (style, window, state_type, GTK_SHADOW_NONE, area,
widget, detail, x, y, width, height);
if(is_vertical)
parent_class->draw_box(style, window, state_type, GTK_SHADOW_ETCHED_IN, area, NULL, NULL, (2 * x + width)/2, y, 1, height);
else
parent_class->draw_box(style, window, state_type, GTK_SHADOW_ETCHED_IN, area, NULL, NULL, x, (2 * y + height)/2, width, 1);
return;
}
} }
else if (detail && strcmp (detail, "optionmenu") == 0) else if (detail && strcmp (detail, "optionmenu") == 0)
{ {