From cb9c99c5f424496a2fb8526a8c2e492d41140e9e Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Mon, 1 Nov 2004 05:04:37 +0000
Subject: Add a name for timezone combox. Make accessibility name and
description
2004-10-28 Li Yuan
* e-timezone-dialog/e-timezone-dialog.glade:
Add a name for timezone combox.
* misc/e-calendar.c: (e_calendar_init), (e_calendar_new):
Make accessibility name and description translatable.
Add a atk name for the two buttons so that they can be UI
grabbed by GOK.
* misc/e-dateedit.c: (e_date_edit_new), (create_children):
Add a name for atk object.
Make accessibility name and description translatable.
Add name and description for the date_entry, date_button
and time_combo.
(e_date_edit_show_date_popup), (hide_date_popup):
Grab and ungrab keyboard.
add_relation():
New function to add labelled_by relation for entry
and combobox.
* misc/e-map.c: (e_map_new):
Add a name for world map widget.
Make accessibility name and description translatable.
Set the atk role to image.
* misc/e-multi-config-dialog.c: (e_multi_config_dialog_add_page):
Add an atk name for the page.
svn path=/trunk/; revision=27776
---
widgets/misc/e-calendar.c | 9 +++++++++
1 file changed, 9 insertions(+)
(limited to 'widgets/misc/e-calendar.c')
diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c
index 402e390df0..5fca4ab074 100644
--- a/widgets/misc/e-calendar.c
+++ b/widgets/misc/e-calendar.c
@@ -42,6 +42,7 @@
#include
#include
#include
+#include
#define E_CALENDAR_SMALL_FONT_PTSIZE 6
@@ -140,6 +141,7 @@ e_calendar_init (ECalendar *cal)
GnomeCanvasGroup *canvas_group;
PangoFontDescription *small_font_desc;
GtkWidget *button, *pixmap;
+ AtkObject *a11y;
/* Create the small font. */
@@ -179,6 +181,8 @@ e_calendar_init (ECalendar *cal)
gnome_canvas_widget_get_type (),
"widget", button,
NULL);
+ a11y = gtk_widget_get_accessible (button);
+ atk_object_set_name (a11y, _("Previous Button"));
button = gtk_button_new ();
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
@@ -201,6 +205,8 @@ e_calendar_init (ECalendar *cal)
gnome_canvas_widget_get_type (),
"widget", button,
NULL);
+ a11y = gtk_widget_get_accessible (button);
+ atk_object_set_name (a11y, _("Previous Button"));
cal->min_rows = 1;
cal->min_cols = 1;
@@ -221,8 +227,11 @@ GtkWidget *
e_calendar_new (void)
{
GtkWidget *cal;
+ AtkObject *a11y;
cal = gtk_type_new (e_calendar_get_type ());
+ a11y = gtk_widget_get_accessible (cal);
+ atk_object_set_name (a11y, _("Month Calendar"));
return cal;
}
--
cgit v1.2.3