]> Pileus Git - ~andy/gtk/commitdiff
color-swatch: render a background if the swatch doesn't have a color
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 17 Feb 2012 17:57:24 +0000 (18:57 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Sat, 18 Feb 2012 08:55:45 +0000 (09:55 +0100)
We still want to call into the background rendering code, to draw the
default background.

gtk/gtkcolorswatch.c

index f0bde916488952bdb44d7d4b30eb4139d7e7f32c..0429455124818d4c05ed5145406652ebc9f77f96 100644 (file)
@@ -145,6 +145,8 @@ swatch_draw (GtkWidget *widget,
 
       _gtk_theming_background_render (&background, cr);
     }
+  else
+    _gtk_theming_background_render (&background, cr);
 
   gtk_render_frame (context, cr,
                     0, 0, width, height);