stack: Don't draw an extra background

The gadget draws a background for us, we don't need another one.
This commit is contained in:
Benjamin Otte 2016-12-13 05:55:42 +01:00
parent 07d39299ea
commit 68a54ae81f

View File

@ -2094,16 +2094,8 @@ gtk_stack_render (GtkCssGadget *gadget,
GtkWidget *widget = gtk_css_gadget_get_owner (gadget); GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
GtkStack *stack = GTK_STACK (widget); GtkStack *stack = GTK_STACK (widget);
GtkStackPrivate *priv = gtk_stack_get_instance_private (stack); GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
GtkStyleContext *context;
cairo_t *pattern_cr; cairo_t *pattern_cr;
context = gtk_widget_get_style_context (widget);
gtk_render_background (context,
cr,
0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
if (priv->visible_child) if (priv->visible_child)
{ {
if (gtk_progress_tracker_get_state (&priv->tracker) != GTK_PROGRESS_STATE_AFTER) if (gtk_progress_tracker_get_state (&priv->tracker) != GTK_PROGRESS_STATE_AFTER)