Bug 500897 - Window resizer is not drawn correctly on some themes. r+sr=roc

This commit is contained in:
Michael Ventnor 2009-06-27 16:40:12 +02:00
parent c9d578ace8
commit 391eac00ac

View File

@ -2130,15 +2130,15 @@ moz_gtk_resizer_paint(GdkDrawable* drawable, GdkRectangle* rect,
GtkStyle* style; GtkStyle* style;
GtkStateType state_type = ConvertGtkState(state); GtkStateType state_type = ConvertGtkState(state);
ensure_window_widget(); ensure_frame_widget();
gtk_widget_set_direction(gProtoWindow, direction); gtk_widget_set_direction(gStatusbarWidget, direction);
style = gProtoWindow->style; style = gStatusbarWidget->style;
TSOffsetStyleGCs(style, rect->x, rect->y); TSOffsetStyleGCs(style, rect->x, rect->y);
gtk_paint_resize_grip(style, drawable, state_type, cliprect, gProtoWindow, gtk_paint_resize_grip(style, drawable, state_type, cliprect, gStatusbarWidget,
NULL, (direction == GTK_TEXT_DIR_LTR) ? "statusbar", (direction == GTK_TEXT_DIR_LTR) ?
GDK_WINDOW_EDGE_SOUTH_EAST : GDK_WINDOW_EDGE_SOUTH_EAST :
GDK_WINDOW_EDGE_SOUTH_WEST, GDK_WINDOW_EDGE_SOUTH_WEST,
rect->x, rect->y, rect->width, rect->height); rect->x, rect->y, rect->width, rect->height);