From 70b8fdc505089c12833f5a05223b98323fdeeb5c Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Tue, 11 Jul 2006 09:37:36 +0000 Subject: Add mnemonic widget to widget, and change calendar's shortcut key. 2006-07-11 Li Yuan * gui/dialogs/event-page.c: (sensitize_widgets): * gui/dialogs/event-page.glade: Add mnemonic widget to widget, and change calendar's shortcut key. Fix for #345510. 2006-07-11 Li Yuan * gui/e-week-view.c: (e_week_view_focus): Fix for 345923. If there is not any event in week view, just grab week view itself. svn path=/trunk/; revision=32278 --- calendar/ChangeLog | 15 +++++++++++++++ calendar/gui/dialogs/event-page.c | 3 ++- calendar/gui/dialogs/event-page.glade | 4 +++- calendar/gui/e-week-view.c | 6 ++++++ 4 files changed, 26 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 2035ec90ed..834c9dd696 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,18 @@ +2006-07-11 Li Yuan + + * gui/dialogs/event-page.c: (sensitize_widgets): + * gui/dialogs/event-page.glade: + Add mnemonic widget to widget, and change calendar's shortcut key. + + Fix for #345510. + +2006-07-11 Li Yuan + + * gui/e-week-view.c: (e_week_view_focus): + Fix for 345923. + If there is not any event in week view, + just grab week view itself. + 2006-07-10 Rajeev ramanathan * gui/e-day-view.c:(e_day_view_update_event_label) diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 8e2d9cf859..19ff6a60a3 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -869,7 +869,8 @@ sensitize_widgets (EventPage *epage) gtk_widget_hide (priv->list_box); gtk_widget_hide (priv->attendee_box); gtk_widget_hide (priv->organizer); - gtk_label_set_text_with_mnemonic ((GtkLabel *) priv->org_cal_label, _("Cale_ndar:")); + gtk_label_set_text_with_mnemonic ((GtkLabel *) priv->org_cal_label, _("_Calendar:")); + gtk_label_set_mnemonic_widget ((GtkLabel *) priv->org_cal_label, priv->source_selector); } else { gtk_widget_show (priv->calendar_label); gtk_widget_show (priv->list_box); diff --git a/calendar/gui/dialogs/event-page.glade b/calendar/gui/dialogs/event-page.glade index 860986ae14..95fffa2eb8 100644 --- a/calendar/gui/dialogs/event-page.glade +++ b/calendar/gui/dialogs/event-page.glade @@ -149,6 +149,7 @@ -1 False 0 + organizer-entry 0 @@ -177,6 +178,7 @@ -1 False 0 + start-time 0 @@ -746,7 +748,7 @@ True - Cale_ndar: + _Calendar: True False GTK_JUSTIFY_LEFT diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 45021ad3f2..6d86eb6c6f 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -1218,6 +1218,12 @@ e_week_view_focus (GtkWidget *widget, GtkDirectionType direction) last_focus_span_num = week_view->editing_span_num; } + /* if there is not event, just grab week_view */ + if (week_view->events->len == 0) { + gtk_widget_grab_focus (widget); + return TRUE; + } + for (event_loop = 0; event_loop < week_view->events->len; ++event_loop) { if (!e_week_view_get_next_tab_event (week_view, direction, -- cgit v1.2.3