spinbutton: don't render an additional background below arrows

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.
This commit is contained in:
Cosimo Cecchi 2011-06-09 14:56:09 -04:00
parent 4d8b5baf7e
commit aa515e71d1

View 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);