[gtk+] Paint GtkFrame background



commit 751a330ad83e4b17a7a9dd18158422708fb0dd99
Author: Paolo Borelli <pborelli gnome org>
Date:   Fri Dec 21 13:53:02 2012 +0100

    Paint GtkFrame background
    
    It already paints the css border, so let's make it also honor css
    background. This is needed to have a box of a different color around
    some widgets (e.g. latest gnome-clocks design)

 gtk/gtkframe.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index 03e0b2a..fb62cc7 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -689,6 +689,8 @@ gtk_frame_draw (GtkWidget *widget,
   width = priv->child_allocation.width + padding.left + padding.right;
   height =  priv->child_allocation.height + padding.top + padding.bottom;
 
+  gtk_render_background (context, cr, x, y, width, height);
+
   if (priv->shadow_type != GTK_SHADOW_NONE)
     {
       if (priv->label_widget)



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