]> Pileus Git - ~andy/gtk/commitdiff
Render background of a GtkImage
authorPaolo Borelli <pborelli@gnome.org>
Mon, 23 Jan 2012 20:00:38 +0000 (21:00 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Mon, 23 Jan 2012 20:03:05 +0000 (21:03 +0100)
Useful to e.g. style the bg color of a symbolic icon

gtk/gtkimage.c

index 45a8bba3a75e70ce9a90c455d86c66b94279f88b..8551149bfd406ecee50124eec0309587c76dddcb 100644 (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;