[gtk/wip/baedert/for-master: 35/38] widget: Remove GtkWindow special case in create_render_node()



commit 033d48f830af1cef79157e42eefca395d0d1ca6e
Author: Timm Bäder <mail baedert org>
Date:   Wed Feb 5 14:18:14 2020 +0100

    widget: Remove GtkWindow special case in create_render_node()
    
    Later commits will fix up GtkWindow

 gtk/gtkwidget.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d812027bf2..71fe4c4e8f 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12114,11 +12114,8 @@ gtk_widget_create_render_node (GtkWidget   *widget,
   if (opacity < 1.0)
     gtk_snapshot_push_opacity (snapshot, opacity);
 
-  if (!GTK_IS_WINDOW (widget))
-    {
-      gtk_css_style_snapshot_background (&boxes, snapshot);
-      gtk_css_style_snapshot_border (&boxes, snapshot);
-    }
+  gtk_css_style_snapshot_background (&boxes, snapshot);
+  gtk_css_style_snapshot_border (&boxes, snapshot);
 
   if (priv->overflow == GTK_OVERFLOW_HIDDEN)
     gtk_snapshot_push_rounded_clip (snapshot, gtk_css_boxes_get_padding_box (&boxes));


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