diff options
author | Bolian Yin <bolian.yin@sun.com> | 2003-08-20 16:05:00 +0800 |
---|---|---|
committer | Bolian Yin <byin@src.gnome.org> | 2003-08-20 16:05:00 +0800 |
commit | ef5eb5facdf293531569ca1d8b7ab7fd976fbe83 (patch) | |
tree | 5f8bce18e4c7ee5d6e31878b29facad4841f12f5 /calendar/gui/gnome-cal.c | |
parent | 7bb25afd430ffab77397d9fc4e6b756251ba31d8 (diff) | |
download | gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar.gz gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar.zst gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.zip |
Add a11y dependency. gui/calendar-commands.c
2003-08-20 Bolian Yin <bolian.yin@sun.com>
* gui/Makefile.am : Add a11y dependency.
* gui/calendar-commands.c (calendar_get_text_for_folder_bar_label)
* gui/e-cal-view.c: Add two new events: "event_changed" and "event_added"
* gui/e-day-view.c (e_day_view_class_init): init a11y.
(e_day_view_find_event_from_item): make it public from private
(e_day_view_update_event_cb): emit "event_changed" signal
(e_day_view_reshape_day_event): emit "event_added" signal
(e_day_view_reshape_long_event): emit "event_added" signal
* gui/e-week-view.c (e_week_view_class_init): init a11y.
(e_week_view_find_event_from_item): make it public from private
(e_week_view_update_event_cb): emit "event_changed" signal
(e_week_view_reshape_event_span): emit "event_added" signal
* gui/gnome-cal.c (gnome_calendar_class_init): init a11y.
(gnome_calendar_get_e_calendar_widget),
(gnome_calendar_get_search_bar_widget),
(gnome_calendar_get_view_notebook_widget): new functions
svn path=/trunk/; revision=22303
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index d127f46079..a67f20e9a7 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -57,6 +57,7 @@ #include "calendar-view-factory.h" #include "tag-calendar.h" #include "misc.h" +#include "ea-calendar.h" extern ECompEditorRegistry *comp_editor_registry; @@ -353,6 +354,9 @@ gnome_calendar_class_init (GnomeCalendarClass *class) "goto_date",1, G_TYPE_ENUM, GNOME_CAL_GOTO_SAME_DAY_OF_NEXT_WEEK); + /* init the accessibility support for gnome_calendar */ + gnome_calendar_a11y_init (); + } /* Callback used when the calendar query reports of an updated object */ @@ -3120,3 +3124,26 @@ gnome_calendar_get_task_pad (GnomeCalendar *gcal) return E_CALENDAR_TABLE (gcal->priv->todo); } +GtkWidget * +gnome_calendar_get_e_calendar_widget (GnomeCalendar *gcal) +{ + g_return_val_if_fail (GNOME_IS_CALENDAR (gcal), NULL); + + return GTK_WIDGET(gcal->priv->date_navigator); +} + +GtkWidget * +gnome_calendar_get_search_bar_widget (GnomeCalendar *gcal) +{ + g_return_val_if_fail (GNOME_IS_CALENDAR (gcal), NULL); + + return GTK_WIDGET(gcal->priv->search_bar); +} + +GtkWidget * +gnome_calendar_get_view_notebook_widget (GnomeCalendar *gcal) +{ + g_return_val_if_fail (GNOME_IS_CALENDAR (gcal), NULL); + + return GTK_WIDGET(gcal->priv->notebook); +} |