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:
@ -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));
|
||||
|
Reference in New Issue
Block a user