mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 06:40:08 +00:00
widget: Set the allocation via gtk_widget_set_allocation()
There is no good reason to assign the value directly.
Also, this fixes d23f3254b7
where widgets that chained up instead of calling
gtk_widget_set_allocation() would not draw becaues of empty clip.
This commit is contained in:
parent
631688cf64
commit
42a6ae6c6c
@ -6348,7 +6348,7 @@ gtk_widget_real_size_allocate (GtkWidget *widget,
|
|||||||
{
|
{
|
||||||
GtkWidgetPrivate *priv = widget->priv;
|
GtkWidgetPrivate *priv = widget->priv;
|
||||||
|
|
||||||
priv->allocation = *allocation;
|
gtk_widget_set_allocation (widget, allocation);
|
||||||
|
|
||||||
if (gtk_widget_get_realized (widget) &&
|
if (gtk_widget_get_realized (widget) &&
|
||||||
gtk_widget_get_has_window (widget))
|
gtk_widget_get_has_window (widget))
|
||||||
|
Loading…
Reference in New Issue
Block a user