Render background of a GtkImage

Useful to e.g. style the bg color of a symbolic icon
This commit is contained in:
Paolo Borelli 2012-01-23 21:00:38 +01:00
parent 31e89b44da
commit 1326466309

View File

@ -1396,6 +1396,7 @@ gtk_image_draw (GtkWidget *widget,
x = floor ((gtk_widget_get_allocated_width (widget) - width) * xalign);
y = floor ((gtk_widget_get_allocated_height (widget) - height) * yalign);
gtk_render_background (context, cr, x, y, width, height);
gtk_render_frame (context, cr, x, y, width, height);
x += border.left;