summaryrefslogtreecommitdiff
path: root/src/ui/preview-widget.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-21 15:09:36 -0400
committerVictor Kareh <[email protected]>2019-06-05 10:49:37 -0400
commit7bcd852276e8d7e941144760c836e9eefffb1107 (patch)
tree9417569bcc41efe52dcde9dd38d586df704e0282 /src/ui/preview-widget.c
parent8d113709ecf09bfccf80572f863b196957d1b481 (diff)
downloadmarco-7bcd852276e8d7e941144760c836e9eefffb1107.tar.bz2
marco-7bcd852276e8d7e941144760c836e9eefffb1107.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 2928d3b1..e40db6c6 100644
--- a/src/ui/preview-widget.c
+++ b/src/ui/preview-widget.c
@@ -222,7 +222,7 @@ meta_preview_draw (GtkWidget *widget,
if (preview->theme)
{
meta_theme_draw_frame (preview->theme,
- widget,
+ gtk_widget_get_style_context (widget),
cr,
preview->type,
preview->flags,