From 68a053e3d3626de202240e9f9344e4d3afe78246 Mon Sep 17 00:00:00 2001 From: Kidd Wang Date: Mon, 29 Dec 2003 09:58:32 +0000 Subject: add a menu item for "open appointment". 2003-12-29 Kidd Wang * gui/calendar-commands.c (file_open_event_cb): add a menu item for "open appointment". * gui/e-cal-view.[ch] (e_calendar_view_open_event): add a signal "open_event" and bind it to "ctrl+o". When the signal is delivered, a dialog will be opened to edit the selected event. * gui/e-calendar-table.c (e_calendar_table_on_key_press): press "ctrl-o" to open a dialog. svn path=/trunk/; revision=24012 --- calendar/gui/e-calendar-table.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/gui/e-calendar-table.c') diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index d04315799d..4200f2421b 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -1283,6 +1283,10 @@ e_calendar_table_on_key_press (ETable *table, if (event->keyval == GDK_Delete) { delete_cb (NULL, cal_table); return TRUE; + } else if ((event->keyval == GDK_o) + &&(event->state & GDK_CONTROL_MASK)) { + open_task_by_row (cal_table, row); + return TRUE; } return FALSE; -- cgit v1.2.3