[gtk/ebassi/new-a11y: 51/71] a11y: Update the accessible label for GtkButton
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/new-a11y: 51/71] a11y: Update the accessible label for GtkButton
- Date: Wed, 22 Jul 2020 12:26:03 +0000 (UTC)
commit 4741e4b9e1262368bccce9866e5b3ba057082d95
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jul 13 17:04:38 2020 +0100
a11y: Update the accessible label for GtkButton
gtk/gtkbutton.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 7c09323772..deffe507d2 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -849,6 +849,10 @@ gtk_button_set_label (GtkButton *button,
gtk_label_set_label (GTK_LABEL (priv->child), label);
gtk_button_set_child_type (button, LABEL_CHILD);
+ gtk_accessible_update_property (GTK_ACCESSIBLE (button),
+ GTK_ACCESSIBLE_PROPERTY_LABEL, label,
+ -1);
+
g_object_notify_by_pspec (G_OBJECT (button), props[PROP_LABEL]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]