From 9b9083180f211cc4f19750de84c92dd8541c8848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 20 Nov 2015 16:59:56 +0100 Subject: [PATCH] theme: Shut up some GTK+ warnings GTK+ started to complain when the state parameter passed to any gtk_style_context_get*() method mismatches the context's current state a while ago. --- src/ui/theme.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/theme.c b/src/ui/theme.c index 555b9028a..1f33c3e53 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -1130,9 +1130,10 @@ meta_style_info_create_font_desc (MetaStyleInfo *style_info) { PangoFontDescription *font_desc; const PangoFontDescription *override = meta_prefs_get_titlebar_font (); + GtkStyleContext *context = style_info->styles[META_STYLE_ELEMENT_TITLE]; - gtk_style_context_get (style_info->styles[META_STYLE_ELEMENT_TITLE], - GTK_STATE_FLAG_NORMAL, + gtk_style_context_get (context, + gtk_style_context_get_state (context), "font", &font_desc, NULL); if (override)