[mutter] theme: Shut up some GTK+ warnings
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] theme: Shut up some GTK+ warnings
- Date: Tue, 24 Nov 2015 23:40:57 +0000 (UTC)
commit 9b9083180f211cc4f19750de84c92dd8541c8848
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Nov 20 16:59:56 2015 +0100
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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 555b902..1f33c3e 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]