[gtk/ebassi/new-a11y: 22/29] 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: 22/29] a11y: Update the accessible label for GtkButton
- Date: Fri, 17 Jul 2020 13:24:46 +0000 (UTC)
commit f949731cec6bdda9615f4f2c5b4b1621041f8b92
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 3177d95fc2..5fc6069336 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -837,6 +837,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]