aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-time-sel.c
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2004-10-12 14:58:11 +0800
committerHarry Lu <haip@src.gnome.org>2004-10-12 14:58:11 +0800
commitc9e20b967bb7e1b679f10cb9d388c94a95c3bf06 (patch)
tree04ecf33cae558c39fba2627470110e7ed945e08b /calendar/gui/e-meeting-time-sel.c
parenta7ba5c21d168b35e2a950d82b90c141dd16ca3ba (diff)
downloadgsoc2013-evolution-c9e20b967bb7e1b679f10cb9d388c94a95c3bf06.tar.gz
gsoc2013-evolution-c9e20b967bb7e1b679f10cb9d388c94a95c3bf06.tar.zst
gsoc2013-evolution-c9e20b967bb7e1b679f10cb9d388c94a95c3bf06.zip
When the start year and the end year are the same, the num should be
2004-10-12 Li Yuan <li.yuan@sun.com> * gui/calendar-commands.c: (calendar_get_text_for_folder_bar_label): When the start year and the end year are the same, the num should be displayed in start time. * gui/dialogs/alarm-dialog.glade: Add names to comboxes in alarm-dialog page. * gui/dialogs/cal-prefs-dialog.glade: Add labbled_by relation for e_date_edit. Add names to comboxes in general tab and display tab. Add shortcut keys to start_of_day_label and end_of_day_label. * gui/dialogs/event-page.c: (init_widgets): Use the default text_buffer of gtk_text_view instead of creating one. * gui/dialogs/event-page.glade: Add labbled_by relation for e_date_edit. * gui/dialogs/meeting-page.glade: Set an atk name for organizer widget. * gui/dialogs/task-page.c: (init_widgets): Use the default text_buffer of gtk_text_view instead of creating one. * gui/dialogs/task-page.glade: Add labbled_by relation for e_date_edit. Add a11y names to task description and categories. * gui/e-alarm-list.c: (e_alarm_list_iter_n_children): Remove the iter checker. The iter can't have a valid value at this time. * gui/e-date-time-list.c: (e_date_time_list_iter_n_children): Remove the iter checker. The iter can't have a valid value at this time. * gui/e-meeting-time-sel.c: (e_meeting_time_selector_construct): Add labbled_by relation for e_date_edit. * gui/e-timezone-entry.c: (e_timezone_entry_class_init), (e_timezone_entry_init), (e_timezone_entry_mnemonic_activate), (e_timezone_entry_focus): Add a focus handler for e-timezone-entry. Set an atk name for the button. * gui/e-week-view.c: (e_week_view_do_cursor_key_up), (e_week_view_do_cursor_key_down), (e_week_view_do_cursor_key_left), (e_week_view_do_cursor_key_right), (e_month_view_do_cursor_key_up), (e_month_view_do_cursor_key_down), (e_month_view_do_cursor_key_left), (e_month_view_do_cursor_key_right): Emit the selected_time_changed signal after the selection day changed. svn path=/trunk/; revision=27550
Diffstat (limited to 'calendar/gui/e-meeting-time-sel.c')
-rw-r--r--calendar/gui/e-meeting-time-sel.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 5335fca5d3..6acd0cd8e6 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -277,6 +277,7 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
guchar stipple_bits[] = {
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
};
+ AtkObject *a11y_label, *a11y_date_edit;
/* The default meeting time is the nearest half-hour interval in the
future, in working hours. */
@@ -591,6 +592,14 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
gtk_widget_show (table);
mts->start_date_edit = e_date_edit_new ();
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), mts->start_date_edit);
+ a11y_label = gtk_widget_get_accessible (label);
+ a11y_date_edit = gtk_widget_get_accessible (mts->start_date_edit);
+ if (a11y_label != NULL && a11y_date_edit != NULL) {
+ atk_object_add_relationship (a11y_date_edit,
+ ATK_RELATION_LABELLED_BY,
+ a11y_label);
+ }
e_date_edit_set_show_time (E_DATE_EDIT (mts->start_date_edit), TRUE);
e_date_edit_set_use_24_hour_format (E_DATE_EDIT (mts->start_date_edit),
calendar_config_get_24_hour_format ());
@@ -610,6 +619,14 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
gtk_widget_show (label);
mts->end_date_edit = e_date_edit_new ();
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), mts->end_date_edit);
+ a11y_label = gtk_widget_get_accessible (label);
+ a11y_date_edit = gtk_widget_get_accessible (mts->end_date_edit);
+ if (a11y_label != NULL && a11y_date_edit != NULL) {
+ atk_object_add_relationship (a11y_date_edit,
+ ATK_RELATION_LABELLED_BY,
+ a11y_label);
+ }
e_date_edit_set_show_time (E_DATE_EDIT (mts->end_date_edit), TRUE);
e_date_edit_set_use_24_hour_format (E_DATE_EDIT (mts->end_date_edit),
calendar_config_get_24_hour_format ());