summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-03 10:17:58 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:10 -0400
commit4b75b20c349a9d513cb2423891204e6e8be32598 (patch)
tree282d86306f62e3b8f4d4d4c650756bdbb07e3f8e /gtk
parentca94c680ccb660aa99dcd9342c4ba1e80b314f9c (diff)
downloadgtk+-4b75b20c349a9d513cb2423891204e6e8be32598.tar.gz
Widget: Disable css box drawing for GtkWindow
Until we know how we solve that.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwidget.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index bda6ec8507..2e5203f708 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -15365,17 +15365,19 @@ gtk_widget_snapshot (GtkWidget *widget,
_gtk_widget_get_allocation (widget, &allocation);
- gtk_snapshot_offset (snapshot, margin.left, margin.top);
- gtk_css_style_snapshot_background (style,
+ if (!GTK_IS_WINDOW (widget))
+ {
+ gtk_snapshot_offset (snapshot, margin.left, margin.top);
+ gtk_css_style_snapshot_background (style,
+ snapshot,
+ allocation.width - margin.left - margin.right,
+ allocation.height - margin.top - margin.bottom);
+ gtk_css_style_snapshot_border (style,
snapshot,
allocation.width - margin.left - margin.right,
allocation.height - margin.top - margin.bottom);
- gtk_css_style_snapshot_border (style,
- snapshot,
- allocation.width - margin.left - margin.right,
- allocation.height - margin.top - margin.bottom);
- gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
-
+ gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
+ }
if (mode == RENDER_DRAW)
{