[evolution] Bug 602907 - Cannot delete meetings or appointments in list view



commit 643851bf598b4f903af96ef41aae259b886ae1af
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Nov 25 08:30:01 2009 -0500

    Bug 602907 - Cannot delete meetings or appointments in list view

 modules/calendar/e-cal-shell-content.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c
index e847b27..39834d0 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;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]