[gtk: 3/5] Delete unneccessary comment and make other more descriptive
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 3/5] Delete unneccessary comment and make other more descriptive
- Date: Fri, 17 Sep 2021 16:51:53 +0000 (UTC)
commit ba5d010e3909c69668dbd144b43ff4fb9031c2ae
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date: Fri Sep 17 15:11:26 2021 +0200
Delete unneccessary comment and make other more descriptive
gtk/gtkmenubutton.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 6552165824..d36b905770 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -1021,7 +1021,8 @@ gtk_menu_button_set_icon_name (GtkMenuButton *menu_button,
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_set_halign (box, GTK_ALIGN_CENTER);
- // Because we are setting only an icon, let the inner button be labeled by us, so the accessible label can
be overridden
+ /* Because we are setting only an icon, let the inner button be labeled by us
+ so the accessible label can be overridden from, for example, an UI file using GtkMenuButton as a child of
something. */
gtk_accessible_update_relation (GTK_ACCESSIBLE (menu_button->button), GTK_ACCESSIBLE_RELATION_LABELLED_BY,
menu_button, NULL, -1);
image_widget = g_object_new (GTK_TYPE_IMAGE,
@@ -1156,7 +1157,6 @@ gtk_menu_button_set_label (GtkMenuButton *menu_button,
gtk_button_set_child (GTK_BUTTON (menu_button->button), box);
menu_button->label_widget = label_widget;
- // When the user explicitly set a label assume that it should be announced by assistive technologies as
well
gtk_accessible_update_relation (GTK_ACCESSIBLE (menu_button->button), GTK_ACCESSIBLE_RELATION_LABELLED_BY,
menu_button->label_widget, NULL, -1);
menu_button->image_widget = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]