Hi, Fixe goto dialog keyboard navigation problem. http://bugzilla.ximian.com/show_bug.cgi?id=50808 Thanks, Bolian |
Index: ChangeLog =================================================================== RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v retrieving revision 1.1938 diff -u -r1.1938 ChangeLog --- ChangeLog 11 Nov 2003 02:38:26 -0000 1.1938 +++ ChangeLog 11 Nov 2003 11:03:36 -0000 @@ -1,3 +1,9 @@ +2003-11-11 Bolian Yin <bolian yin sun com> + + Fixes #50808 + + * gui/goto.c (goto_dialog): set initial selection to current day. + 2003-11-10 JP Rosevear <jpr ximian com> * importers/icalendar-importer.c (update_single_object): return Index: gui/goto.c =================================================================== RCS file: /cvs/gnome/evolution/calendar/gui/goto.c,v retrieving revision 1.40 diff -u -r1.40 goto.c --- gui/goto.c 7 Nov 2003 05:52:00 -0000 1.40 +++ gui/goto.c 11 Nov 2003 11:03:36 -0000 @@ -241,6 +241,16 @@ gtk_window_set_transient_for (GTK_WINDOW (dlg->dialog), GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal)))); + /* set initial selection to current day */ + + dlg->ecal->calitem->selection_set = TRUE; + dlg->ecal->calitem->selection_start_month_offset = 0; + dlg->ecal->calitem->selection_start_day = tt.day; + dlg->ecal->calitem->selection_end_month_offset = 0; + dlg->ecal->calitem->selection_end_day = tt.day; + + gnome_canvas_item_grab_focus (GNOME_CANVAS_ITEM (dlg->ecal->calitem)); + b = gtk_dialog_run (GTK_DIALOG (dlg->dialog)); gtk_widget_destroy (dlg->dialog);