From 643851bf598b4f903af96ef41aae259b886ae1af Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 25 Nov 2009 08:30:01 -0500 Subject: BugĀ 602907 - Cannot delete meetings or appointments in list view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/calendar/e-cal-shell-content.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/calendar/e-cal-shell-content.c') diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c index e847b27b95..39834d07ab 100644 --- a/modules/calendar/e-cal-shell-content.c +++ b/modules/calendar/e-cal-shell-content.c @@ -152,6 +152,10 @@ cal_shell_content_get_focus_location (ECalShellContent *cal_shell_content) EMemoTable *memo_table; ETable *table; + /* XXX This function is silly. Certainly there are better ways + * of directing user input to the focused area than polling + * a bunch of widgets to see what's focused. */ + calendar = GNOME_CALENDAR (cal_shell_content->priv->calendar); view_type = gnome_calendar_get_view (calendar); calendar_view = gnome_calendar_get_calendar_view (calendar, view_type); @@ -201,9 +205,13 @@ cal_shell_content_get_focus_location (ECalShellContent *cal_shell_content) ECalListView *list_view = E_CAL_LIST_VIEW (calendar_view); table = e_table_scrolled_get_table (list_view->table_scrolled); + if (gtk_widget_is_focus (GTK_WIDGET (table))) return FOCUS_CALENDAR; + if (gtk_widget_is_focus (GTK_WIDGET (table->table_canvas))) + return FOCUS_CALENDAR; + if (gtk_widget_is_focus (GTK_WIDGET (list_view))) return FOCUS_CALENDAR; } -- cgit