Some minor changes for scrollbar buttons that use transparency. Not part of the build.

This commit is contained in:
bryner%netscape.com 2005-08-20 07:12:14 +00:00
Родитель 0e35c73657
Коммит f33a25c893
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -187,8 +187,6 @@ moz_gtk_scrollbar_button_paint(GdkWindow* window, GtkStyle* style,
{ {
GtkStateType state_type = ConvertGtkState(state); GtkStateType state_type = ConvertGtkState(state);
GtkShadowType shadow_type = (state->active) ? GTK_SHADOW_IN : GTK_SHADOW_OUT; GtkShadowType shadow_type = (state->active) ? GTK_SHADOW_IN : GTK_SHADOW_OUT;
moz_gtk_button_paint(window, style, arrowRect, clipRect, state, GTK_RELIEF_NORMAL);
gtk_paint_arrow(style, window, state_type, shadow_type, clipRect, gtk_paint_arrow(style, window, state_type, shadow_type, clipRect,
gScrollbarWidget, (arrowType < 2) ? "vscrollbar" : "hscrollbar", gScrollbarWidget, (arrowType < 2) ? "vscrollbar" : "hscrollbar",
arrowType, TRUE, arrowType, TRUE,
@ -200,6 +198,10 @@ moz_gtk_scrollbar_trough_paint(GdkWindow* window, GtkStyle* style,
GdkRectangle* troughRect, GdkRectangle* clipRect, GdkRectangle* troughRect, GdkRectangle* clipRect,
GtkWidgetState* state) GtkWidgetState* state)
{ {
gtk_style_apply_default_background(style, window, TRUE, GTK_STATE_ACTIVE,
clipRect, troughRect->x, troughRect->y,
troughRect->width, troughRect->height);
gtk_paint_box(style, window, GTK_STATE_ACTIVE, GTK_SHADOW_IN, gtk_paint_box(style, window, GTK_STATE_ACTIVE, GTK_SHADOW_IN,
clipRect, gScrollbarWidget, "trough", troughRect->x, clipRect, gScrollbarWidget, "trough", troughRect->x,
troughRect->y, troughRect->width, troughRect->height); troughRect->y, troughRect->width, troughRect->height);