aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar.c
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2004-11-01 13:04:37 +0800
committerHarry Lu <haip@src.gnome.org>2004-11-01 13:04:37 +0800
commitcb9c99c5f424496a2fb8526a8c2e492d41140e9e (patch)
treeac8bf00f2f62bfef4a3a448a05e13c843d1daea6 /widgets/misc/e-calendar.c
parent96974d33c3010ba91d201accc5ed5c949e5cc921 (diff)
downloadgsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar
gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar.gz
gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar.bz2
gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar.lz
gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar.xz
gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar.zst
gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.zip
Add a name for timezone combox. Make accessibility name and description
2004-10-28 Li Yuan <li.yuan@sun.com> * 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
Diffstat (limited to 'widgets/misc/e-calendar.c')
-rw-r--r--widgets/misc/e-calendar.c9
1 files changed, 9 insertions, 0 deletions
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 <gtk/gtksignal.h>
#include <libgnomecanvas/gnome-canvas-widget.h>
#include <gal/util/e-util.h>
+#include <libgnome/gnome-i18n.h>
#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;
}