acccellabel: Use right state when querying font

This was causing permanent invalidations otherwise because drawing
causes the state of the accel node to change.
This commit is contained in:
Benjamin Otte
2015-11-06 16:34:09 +01:00
parent ffd517cc3f
commit 203d8daff4

View File

@ -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));