[gtk+] spinbutton: don't render an additional background below arrows



commit aa515e71d18be5b1bb49986dec9d171d1d4036bd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jun 9 14:56:09 2011 -0400

    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.

 gtk/gtkspinbutton.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 90a6a52..0bb5656 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -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);
 



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