mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
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:
parent
7606f79a1e
commit
9b9083180f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user