ModelButton: Properly update indicator on set_role

Redrawing is insufficient: when :role changes to/from NORMAL, the
indicator gadget reallocates, but we didn't reflect that in the widget.

https://gitlab.gnome.org/GNOME/gtk/issues/163
This commit is contained in:
Daniel Boles 2018-04-08 12:56:12 +01:00
parent fa520c5769
commit ba307aa35e

View File

@ -361,7 +361,7 @@ gtk_model_button_set_role (GtkModelButton *button,
update_node_name (button);
gtk_model_button_update_state (button);
gtk_widget_queue_draw (GTK_WIDGET (button));
gtk_widget_queue_resize (GTK_WIDGET (button));
g_object_notify_by_pspec (G_OBJECT (button), properties[PROP_ROLE]);
}