aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-10-31 19:17:04 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-10-31 19:17:04 +0800
commit1a54303e49a9f870f48031ffe54fcf480ac56d6f (patch)
tree0dc700a2b082f570c9f803430222c516232cff82 /calendar/gui/e-week-view.c
parentdccfbb1fbf368a8edb2ab78fd07b69b767ec1997 (diff)
downloadgsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar
gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.gz
gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.bz2
gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.lz
gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.xz
gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.zst
gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.zip
Fix bug #13723.
2001-10-31 Federico Mena Quintero <federico@ximian.com> Fix bug #13723. * gui/gnome-cal.h (GnomeCalendarClass): New signals "calendar_focus_change", "taskpad_focus_change", and "taskpad_selection_changed". Renamed "selection_changed" to "calendar_selection_changed". * gui/gnome-cal.c (gnome_calendar_get_num_tasks_selected): New function. (setup_widgets): Connect to the focus event signals of the task pad and the calendar view widgets. (gnome_calendar_delete_selection): Renamed from gnome_calendar_delete_event(). (gnome_calendar_cut_clipboard): Handle the current focus location. (gnome_calendar_copy_clipboard): Likewise. (gnome_calendar_paste_clipboard): Likewise. (gnome_calendar_delete_selection): Likewise. (table_selection_change_cb): New callback. * gui/calendar-commands.c (sensitize_calendar_commands): Take in whether we should unconditionally disable everything. (sensitize_taskpad_commands): Analogous function to the above. (gcal_calendar_focus_change_cb): New callback, used for calendar views. (gcal_taskpad_focus_change_cb): New callback, used for the taskpad. * gui/e-day-view.c (e_day_view_key_press): Use a better test for keys that should start editing. Fixes bug #6447. * gui/e-week-view.c (e_week_view_key_press): Likewise. svn path=/trunk/; revision=14528
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 3af297d2ad..4ab60ffc78 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3293,10 +3293,10 @@ e_week_view_key_press (GtkWidget *widget, GdkEventKey *event)
character. */
if (event->keyval == GDK_Return) {
initial_text = NULL;
- } else if ((event->keyval < 0x20)
- || (event->keyval > 0xFF)
+ } else if (((event->keyval >= 0x20) && (event->keyval <= 0xFF)
+ && (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)))
|| (event->length == 0)
- || (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK))) {
+ || (event->keyval == GDK_Tab)) {
return FALSE;
} else
initial_text = e_utf8_from_gtk_event_key (widget, event->keyval, event->string);