[evolution-patches] a calendar a11y patch
- From: Li Yuan <Li Yuan Sun COM>
- To: Rodrigo Moya <rodrigo novell com>
- Cc: patches <evolution-patches lists ximian com>
- Subject: [evolution-patches] a calendar a11y patch
- Date: Mon, 27 Dec 2004 19:39:56 +0800
Hi, Rodrigo
Attach is a little patch for evolution calendar. Please help me to
review it.
Thank you very much.
Regards,
Li
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2596
diff -u -r1.2596 ChangeLog
--- ChangeLog 24 Dec 2004 04:44:57 -0000 1.2596
+++ ChangeLog 27 Dec 2004 11:30:40 -0000
@@ -1,3 +1,10 @@
+2004-12-27 Harry Lu <harry lu sun com>
+
+ * gui/calendar-component.c: (create_component_view):
+ add a11y name to calendar sidebar selector.
+ * gui/tasks-component.c: (create_component_view):
+ add a11y name to task sidebar selector.
+
2004-12-24 Harish Krishnaswamy <kharish novell com>
* gui/dialogs/event-editor.c (event_editor_edit_comp):
Check for the existence of the meet/sched pages before
Index: gui/calendar-component.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/calendar-component.c,v
retrieving revision 1.192
diff -u -r1.192 calendar-component.c
--- gui/calendar-component.c 22 Dec 2004 07:37:25 -0000 1.192
+++ gui/calendar-component.c 27 Dec 2004 11:30:44 -0000
@@ -34,6 +34,8 @@
#include <libecal/e-cal-time-util.h>
#include <libedataserverui/e-source-selector.h>
#include <shell/e-user-creatable-items-handler.h>
+#include <glib/gi18n.h>
+#include <atk/atkobject.h>
#include "e-pub-utils.h"
#include "e-calendar-view.h"
#include "calendar-config-keys.h"
@@ -1042,6 +1044,7 @@
GtkWidget *selector_scrolled_window, *vbox;
GtkWidget *statusbar_widget;
guint not;
+ AtkObject *a11y;
priv = calendar_component->priv;
@@ -1055,6 +1058,8 @@
/* Create sidebar selector */
component_view->source_selector = e_source_selector_new (calendar_component->priv->source_list);
e_source_selector_set_select_new ((ESourceSelector *)component_view->source_selector, TRUE);
+ a11y = gtk_widget_get_accessible (GTK_WIDGET (component_view->source_selector));
+ atk_object_set_name (a11y, _("Calendar Source Selector"));
g_signal_connect (component_view->source_selector, "drag-motion", G_CALLBACK (selector_tree_drag_motion),
calendar_component);
Index: gui/tasks-component.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/tasks-component.c,v
retrieving revision 1.82
diff -u -r1.82 tasks-component.c
--- gui/tasks-component.c 22 Dec 2004 07:37:25 -0000 1.82
+++ gui/tasks-component.c 27 Dec 2004 11:30:49 -0000
@@ -33,6 +33,8 @@
#include <libecal/e-cal.h>
#include <libedataserverui/e-source-selector.h>
#include <shell/e-user-creatable-items-handler.h>
+#include <atk/atkobject.h>
+#include <glib/gi18n.h>
#include "e-cal-model.h"
#include "e-tasks.h"
#include "tasks-component.h"
@@ -839,6 +841,7 @@
TasksComponentView *component_view;
GtkWidget *selector_scrolled_window, *vbox;
GtkWidget *statusbar_widget;
+ AtkObject *a11y;
priv = tasks_component->priv;
@@ -851,6 +854,8 @@
/* Create sidebar selector */
component_view->source_selector = e_source_selector_new (tasks_component->priv->source_list);
e_source_selector_set_select_new ((ESourceSelector *)component_view->source_selector, TRUE);
+ a11y = gtk_widget_get_accessible (GTK_WIDGET (component_view->source_selector));
+ atk_object_set_name (a11y, _("Task Source Selector"));
g_signal_connect (component_view->source_selector, "drag-motion", G_CALLBACK (selector_tree_drag_motion),
tasks_component);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]