From 391eac00ac6f3b0e87c9bf40e5fc23196deb4cba Mon Sep 17 00:00:00 2001 From: Michael Ventnor Date: Sat, 27 Jun 2009 16:40:12 +0200 Subject: [PATCH] Bug 500897 - Window resizer is not drawn correctly on some themes. r+sr=roc --- widget/src/gtk2/gtk2drawing.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/widget/src/gtk2/gtk2drawing.c b/widget/src/gtk2/gtk2drawing.c index 596bbf33344..cfc5fa5bc37 100644 --- a/widget/src/gtk2/gtk2drawing.c +++ b/widget/src/gtk2/gtk2drawing.c @@ -2130,15 +2130,15 @@ moz_gtk_resizer_paint(GdkDrawable* drawable, GdkRectangle* rect, GtkStyle* style; GtkStateType state_type = ConvertGtkState(state); - ensure_window_widget(); - gtk_widget_set_direction(gProtoWindow, direction); + ensure_frame_widget(); + gtk_widget_set_direction(gStatusbarWidget, direction); - style = gProtoWindow->style; + style = gStatusbarWidget->style; TSOffsetStyleGCs(style, rect->x, rect->y); - gtk_paint_resize_grip(style, drawable, state_type, cliprect, gProtoWindow, - NULL, (direction == GTK_TEXT_DIR_LTR) ? + gtk_paint_resize_grip(style, drawable, state_type, cliprect, gStatusbarWidget, + "statusbar", (direction == GTK_TEXT_DIR_LTR) ? GDK_WINDOW_EDGE_SOUTH_EAST : GDK_WINDOW_EDGE_SOUTH_WEST, rect->x, rect->y, rect->width, rect->height);