[gtk+] acccellabel: Use right state when querying font
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] acccellabel: Use right state when querying font
- Date: Fri, 6 Nov 2015 15:37:51 +0000 (UTC)
commit 203d8daff4dc697d92bfeec5baa84352370845db
Author: Benjamin Otte <otte redhat com>
Date: Fri Nov 6 16:34:09 2015 +0100
acccellabel: Use right state when querying font
This was causing permanent invalidations otherwise because drawing
causes the state of the accel node to change.
gtk/gtkaccellabel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index 5b03a68..e4bbdd0 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -412,7 +412,7 @@ gtk_accel_label_get_accel_layout (GtkAccelLabel *accel_label)
if (!attrs)
attrs = pango_attr_list_new ();
gtk_style_context_get (context,
- gtk_widget_get_state_flags (widget),
+ gtk_style_context_get_state (context),
"font", &font_desc,
NULL);
pango_attr_list_change (attrs, pango_attr_font_desc_new (font_desc));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]