summaryrefslogtreecommitdiff
path: root/src/ui/preview-widget.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-21 15:09:36 -0400
committerraveit65 <[email protected]>2019-06-16 18:12:44 +0200
commit2c115a1b5d93dcc3bcf4930ac76dae2833b1e56b (patch)
tree8571dc914a14dd490737b42d8fdacb43f8fffc5c /src/ui/preview-widget.c
parent687423bb3ed807ff1bd638e9dd71fb3a7045ebd1 (diff)
downloadmarco-2c115a1b5d93dcc3bcf4930ac76dae2833b1e56b.tar.bz2
marco-2c115a1b5d93dcc3bcf4930ac76dae2833b1e56b.tar.xz
theme: Make meta_frame_draw_theme take a GtkStyleContext instead of a widget
The style context of the widget is rarely what we want. We won't fix this to be a MetaFrames style context yet; this just changes the internal API. https://bugzilla.gnome.org/show_bug.cgi?id=690317 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/76aa0704
Diffstat (limited to 'src/ui/preview-widget.c')
-rw-r--r--src/ui/preview-widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/preview-widget.c b/src/ui/preview-widget.c
index e5573c6e..d8b8c4bd 100644
--- a/src/ui/preview-widget.c
+++ b/src/ui/preview-widget.c
@@ -224,7 +224,7 @@ meta_preview_draw (GtkWidget *widget,
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
meta_theme_draw_frame (preview->theme,
- widget,
+ gtk_widget_get_style_context (widget),
cr,
preview->type,
preview->flags,