diff --git a/gtk/theme-parser.c b/gtk/theme-parser.c index 2d18eff8bc..d61c2fe86a 100644 --- a/gtk/theme-parser.c +++ b/gtk/theme-parser.c @@ -1609,8 +1609,12 @@ check_expression (PosToken *tokens, * it's possible we should instead guarantee that widths and heights * are at least 1. */ - - env.rect = meta_rect (0, 0, 0, 0); + + env.rect.x = 0; + env.rect.y = 0; + env.rect.width = 0; + env.rect.height = 0; + if (has_object) { env.object_width = 0; diff --git a/gtk/theme.c b/gtk/theme.c index d6f8f8d077..8fc9d36797 100644 --- a/gtk/theme.c +++ b/gtk/theme.c @@ -4525,15 +4525,13 @@ meta_frame_style_draw_with_style (MetaFrameStyle *style, if (op_list) { - GdkRectangle m_rect; - m_rect = meta_rect (rect.x, rect.y, rect.width, rect.height); meta_draw_op_list_draw_with_style (op_list, style_gtk, widget, drawable, &combined_clip, &draw_info, - m_rect); + rect); } } @@ -4567,16 +4565,13 @@ meta_frame_style_draw_with_style (MetaFrameStyle *style, if (op_list) { - GdkRectangle m_rect; - m_rect = meta_rect (rect.x, rect.y, - rect.width, rect.height); meta_draw_op_list_draw_with_style (op_list, style_gtk, widget, drawable, &combined_clip, &draw_info, - m_rect); + rect); } }