summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Villenave <[email protected]>2021-10-14 15:32:49 +0200
committerraveit65 <[email protected]>2021-11-05 19:37:30 +0100
commit51dbf1dd21fcd8ced00342374f64fef3bcfb0758 (patch)
tree4f47eb8b978af02461086596b34fe03e19d010ff
parent8a489c672b790234712cae4a672f7725b4c9ab73 (diff)
downloadmate-calc-51dbf1dd21fcd8ced00342374f64fef3bcfb0758.tar.bz2
mate-calc-51dbf1dd21fcd8ced00342374f64fef3bcfb0758.tar.xz
Accessibility: use localized button names for screen readers
-rw-r--r--src/math-buttons.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/math-buttons.c b/src/math-buttons.c
index b2cb131..500c9ca 100644
--- a/src/math-buttons.c
+++ b/src/math-buttons.c
@@ -94,8 +94,12 @@ static ButtonData button_data[] = {
{"eulers_number", "e", NUMBER,
/* Tooltip for the Euler's Number button */
N_("Euler’s Number")},
- {"imaginary", "i", NUMBER, NULL},
- {"numeric_point", NULL, NUMBER, NULL},
+ {"imaginary", "i", NUMBER,
+ /* Tooltip for the imaginary number button */
+ N_("Imaginary unit")},
+ {"numeric_point", NULL, NUMBER,
+ /* Tooltip for the numeric point button */
+ N_("Decimal point")},
{"subscript", NULL, NUMBER_BOLD,
/* Tooltip for the subscript button */
N_("Subscript mode [Alt]")},
@@ -546,8 +550,6 @@ load_mode(MathButtons *buttons, ButtonMode mode)
if (button_data[i].tooltip)
gtk_widget_set_tooltip_text(button, _(button_data[i].tooltip));
-
- atk_object_set_name(gtk_widget_get_accessible(button), button_data[i].widget_name);
}
/* Set special button data */