app: passing -1 as width/height to gtk_paint_box() no longer works

This commit is contained in:
Michael Natterer 2010-10-20 19:37:35 +02:00
parent 40b9ba002a
commit 1e8b020ac7
1 changed files with 4 additions and 2 deletions

View File

@ -556,7 +556,7 @@ gimp_tag_popup_border_draw (GtkWidget *widget,
cairo_t *cr,
GimpTagPopup *popup)
{
GtkStyle *style = gtk_widget_get_style (widget);
GtkStyle *style = gtk_widget_get_style (widget);
GdkRectangle border;
GdkRectangle upper;
GdkRectangle lower;
@ -574,7 +574,9 @@ gimp_tag_popup_border_draw (GtkWidget *widget,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
widget, "menu",
0, 0, -1, -1);
0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
if (popup->arrows_visible)
{