diff options
author | Benjamin Otte <otte@redhat.com> | 2015-11-06 16:34:09 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-11-06 16:37:40 +0100 |
commit | 203d8daff4dc697d92bfeec5baa84352370845db (patch) | |
tree | 6182195eae867b6bf471bff55ff9fc0711473b1a | |
parent | ffd517cc3fbeac9b6b8783568f8973640a1ba2c6 (diff) | |
download | gtk+-203d8daff4dc697d92bfeec5baa84352370845db.tar.gz |
acccellabel: Use right state when querying font
This was causing permanent invalidations otherwise because drawing
causes the state of the accel node to change.
-rw-r--r-- | gtk/gtkaccellabel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c index 5b03a6819c..e4bbdd0efb 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)); |