From 7bcd852276e8d7e941144760c836e9eefffb1107 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 21 May 2019 15:09:36 -0400 Subject: 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 --- src/ui/theme-viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/theme-viewer.c') diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c index 5903f990..8de8a521 100644 --- a/src/ui/theme-viewer.c +++ b/src/ui/theme-viewer.c @@ -1086,7 +1086,7 @@ run_theme_benchmark (void) cr = cairo_create (pixmap); meta_theme_draw_frame (global_theme, - widget, + gtk_widget_get_style_context (widget), cr, META_FRAME_TYPE_NORMAL, get_flags (widget), -- cgit v1.2.1