forked from AuroraMiddleware/gtk
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:
parent
fa520c5769
commit
ba307aa35e
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user