[gtk+/wip/otte/rendernode: 45/100] stack: Don't draw an extra background
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/rendernode: 45/100] stack: Don't draw an extra background
- Date: Sun, 18 Dec 2016 06:32:28 +0000 (UTC)
commit d7f0b8ed72776e26e68083f51ab676cc2c6751bd
Author: Benjamin Otte <otte redhat com>
Date: Tue Dec 13 05:55:42 2016 +0100
stack: Don't draw an extra background
The gadget draws a background for us, we don't need another one.
gtk/gtkstack.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 610b2f6..b657b64 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2106,16 +2106,8 @@ gtk_stack_render (GtkCssGadget *gadget,
GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
GtkStack *stack = GTK_STACK (widget);
GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
- GtkStyleContext *context;
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 (gtk_progress_tracker_get_state (&priv->tracker) != GTK_PROGRESS_STATE_AFTER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]