]> Pileus Git - ~andy/gtk/commitdiff
spinbutton: don't render an additional background below arrows
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 9 Jun 2011 18:56:09 +0000 (14:56 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 9 Jun 2011 19:06:19 +0000 (15:06 -0400)
It's an entry, so it already has a background below, even when the entry
doesn't have a frame. Also, gtk_spin_button_draw_arrow() will render a
background and a frame in the arrow space anyway.

gtk/gtkspinbutton.c

index 90a6a5239d867e04e21374aa6920cb8650769504..0bb565633f5d6232c22fe1e3e7f88612cf9bcca7 100644 (file)
@@ -939,11 +939,6 @@ gtk_spin_button_draw (GtkWidget      *widget,
 
   gtk_cairo_transform_to_window (cr, widget, priv->panel);
 
-  if (gtk_entry_get_has_frame (GTK_ENTRY (widget)))
-    gtk_render_background (context, cr, 0, 0,
-                           gdk_window_get_width (priv->panel),
-                           gdk_window_get_height (priv->panel));
-
   gtk_spin_button_draw_arrow (spin, context, cr, GTK_ARROW_UP);
   gtk_spin_button_draw_arrow (spin, context, cr, GTK_ARROW_DOWN);