aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2006-07-11 17:37:36 +0800
committerLi Yuan <liyuan@src.gnome.org>2006-07-11 17:37:36 +0800
commit70b8fdc505089c12833f5a05223b98323fdeeb5c (patch)
tree7c18ac39f70ff7bc623af694ec1f9672ebed570c /calendar/gui/e-week-view.c
parent72e952b2d5f023f99c437a43adc65df874015f22 (diff)
downloadgsoc2013-evolution-70b8fdc505089c12833f5a05223b98323fdeeb5c.tar.gz
gsoc2013-evolution-70b8fdc505089c12833f5a05223b98323fdeeb5c.tar.zst
gsoc2013-evolution-70b8fdc505089c12833f5a05223b98323fdeeb5c.zip
Add mnemonic widget to widget, and change calendar's shortcut key.
2006-07-11 Li Yuan <li.yuan@sun.com> * 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 <li.yuan@sun.com> * 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
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c6
1 files changed, 6 insertions, 0 deletions
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,