Fake scrollbar allocation more effectively to trick ClearLooks into drawing correctly rounded buttons. b=336270 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2007-01-17 05:17:46 +00:00
Родитель e80f2d5166
Коммит 70057389cb
1 изменённых файлов: 12 добавлений и 7 удалений

Просмотреть файл

@ -689,13 +689,18 @@ moz_gtk_scrollbar_button_paint(GdkDrawable* drawable, GdkRectangle* rect,
GTK_WIDGET(scrollbar)->allocation.x = rect->x;
GTK_WIDGET(scrollbar)->allocation.y = rect->y;
GTK_WIDGET(scrollbar)->allocation.width = 2 * rect->width;
GTK_WIDGET(scrollbar)->allocation.height = 2 * rect->height;
GTK_WIDGET(scrollbar)->allocation.width = rect->width;
GTK_WIDGET(scrollbar)->allocation.height = rect->height;
if (type < 2) {
GTK_WIDGET(scrollbar)->allocation.height *= 3;
if (type == GTK_ARROW_DOWN)
GTK_WIDGET(scrollbar)->allocation.y -= rect->height;
else if (type == GTK_ARROW_RIGHT)
GTK_WIDGET(scrollbar)->allocation.x -= rect->width;
GTK_WIDGET(scrollbar)->allocation.y -= 2 * rect->height;
} else {
GTK_WIDGET(scrollbar)->allocation.width *= 3;
if (type == GTK_ARROW_RIGHT)
GTK_WIDGET(scrollbar)->allocation.x -= 2 * rect->width;
}
style = GTK_WIDGET(scrollbar)->style;