[gtk/a11y/component: 3/4] widget: Mark the size as changed when it changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/a11y/component: 3/4] widget: Mark the size as changed when it changes
- Date: Wed, 14 Oct 2020 01:28:58 +0000 (UTC)
commit 3eaf70481534b06b27ea41d31b7e749639e0774c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 13 21:20:08 2020 -0400
widget: Mark the size as changed when it changes
This notifies the AT context that the widgets size
has changed.
gtk/gtkwidget.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index acaaf9251a..0c3f2866e7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3810,7 +3810,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",
@@ -3906,6 +3905,9 @@ gtk_widget_allocate (GtkWidget *widget,
gtk_widget_update_paintables (widget);
+ if (size_changed)
+ gtk_accessible_platform_changed (GTK_ACCESSIBLE (widget), GTK_ACCESSIBLE_PLATFORM_CHANGE_SIZE);
+
skip_allocate:
if (size_changed || baseline_changed)
gtk_widget_queue_draw (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]