summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-13 21:20:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-19 12:19:55 -0400
commit75a0bef9219d5f16c8198ed0ef90b5d6535da017 (patch)
tree09b2c62f09c5b31c87bbffafb4da84f81dfa07c3 /gtk
parentd50ebd947ce33ec026a566bdbce5c7ee01457c98 (diff)
downloadgtk+-75a0bef9219d5f16c8198ed0ef90b5d6535da017.tar.gz
widget: Mark the size as changed when it changes
This notifies the AT context that the widgets size has changed.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwidget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5b5729dfdf..29f595c55a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3811,7 +3811,6 @@ gtk_widget_allocate (GtkWidget *widget,
gtk_widget_adjust_size_allocation (widget, &adjusted);
-
if (adjusted.width < 0 || adjusted.height < 0)
{
g_warning ("gtk_widget_size_allocate(): attempt to allocate %s %s %p with width %d and height %d",
@@ -3907,6 +3906,9 @@ gtk_widget_allocate (GtkWidget *widget,
gtk_widget_update_paintables (widget);
+ if (size_changed)
+ gtk_accessible_bounds_changed (GTK_ACCESSIBLE (widget));
+
skip_allocate:
if (size_changed || baseline_changed)
gtk_widget_queue_draw (widget);