1
0
Fork 0

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.
This commit is contained in:
Florian Müllner 2015-11-20 16:59:56 +01:00
parent 7606f79a1e
commit 9b9083180f

View file

@ -1130,9 +1130,10 @@ meta_style_info_create_font_desc (MetaStyleInfo *style_info)
{ {
PangoFontDescription *font_desc; PangoFontDescription *font_desc;
const PangoFontDescription *override = meta_prefs_get_titlebar_font (); 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_style_context_get (context,
GTK_STATE_FLAG_NORMAL, gtk_style_context_get_state (context),
"font", &font_desc, NULL); "font", &font_desc, NULL);
if (override) if (override)