gtk: draw the frame around the spinbutton's buttons conditionally

(depending on GtkEntry::has-frame)
This commit is contained in:
Michael Natterer
2010-11-19 14:55:47 +01:00
parent 39f5740763
commit c2fd7e8350

View File

@ -801,12 +801,13 @@ gtk_spin_button_draw (GtkWidget *widget,
gtk_cairo_transform_to_window (cr, widget, priv->panel); gtk_cairo_transform_to_window (cr, widget, priv->panel);
gtk_paint_box (gtk_widget_get_style (widget), cr, if (gtk_entry_get_has_frame (GTK_ENTRY (widget)))
state, shadow_type, gtk_paint_box (gtk_widget_get_style (widget), cr,
widget, "spinbutton", state, shadow_type,
0, 0, widget, "spinbutton",
gdk_window_get_width (priv->panel), 0, 0,
gdk_window_get_height (priv->panel)); gdk_window_get_width (priv->panel),
gdk_window_get_height (priv->panel));
gtk_spin_button_draw_arrow (spin, cr, GTK_ARROW_UP); gtk_spin_button_draw_arrow (spin, cr, GTK_ARROW_UP);
gtk_spin_button_draw_arrow (spin, cr, GTK_ARROW_DOWN); gtk_spin_button_draw_arrow (spin, cr, GTK_ARROW_DOWN);