[gtk+] Render background of a GtkImage



commit 1326466309119c5e75a275c61bae8b3a3220d4d9
Author: Paolo Borelli <pborelli gnome org>
Date:   Mon Jan 23 21:00:38 2012 +0100

    Render background of a GtkImage
    
    Useful to e.g. style the bg color of a symbolic icon

 gtk/gtkimage.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 45a8bba..8551149 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]