aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-25 21:30:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-25 21:30:01 +0800
commit643851bf598b4f903af96ef41aae259b886ae1af (patch)
tree209666137825b3dca87b925c069e788f006bbdfc /modules/calendar
parentd3497934dbf0aa93e08fe971240953b15c616cf7 (diff)
downloadgsoc2013-evolution-643851bf598b4f903af96ef41aae259b886ae1af.tar
gsoc2013-evolution-643851bf598b4f903af96ef41aae259b886ae1af.tar.gz
gsoc2013-evolution-643851bf598b4f903af96ef41aae259b886ae1af.tar.bz2
gsoc2013-evolution-643851bf598b4f903af96ef41aae259b886ae1af.tar.lz
gsoc2013-evolution-643851bf598b4f903af96ef41aae259b886ae1af.tar.xz
gsoc2013-evolution-643851bf598b4f903af96ef41aae259b886ae1af.tar.zst
gsoc2013-evolution-643851bf598b4f903af96ef41aae259b886ae1af.zip
BugĀ 602907 - Cannot delete meetings or appointments in list view
Diffstat (limited to 'modules/calendar')
-rw-r--r--modules/calendar/e-cal-shell-content.c8
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 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;
}