aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-event-item.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-08-30 01:38:05 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-08-30 01:38:05 +0800
commita15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3 (patch)
treedd4aceb9bb2fbdad3ea639c24ba1d050856a689a /calendar/gui/e-week-view-event-item.c
parentbd94562c049c95452540e35e2655770fbbcc128b (diff)
downloadgsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.tar
gsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.tar.gz
gsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.tar.bz2
gsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.tar.lz
gsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.tar.xz
gsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.tar.zst
gsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.zip
select the top canvas if the user right-clicks on it
002-08-29 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_on_top_canvas_button_press): select the top canvas if the user right-clicks on it (e_day_view_on_main_canvas_button_press): select the row the user is right-clicking on (e_day_view_on_long_event_button_press): select the top canvas if the user right-clicks on an event there (e_day_view_on_event_button_press): select the relevant rows if the user right-clicks on an event (e_day_view_set_selected_time_range_in_top): select a number of days in the top canvas * gui/e-week-view.c (e_week_view_on_button_press): select the day the user is right-clicking on (e_week_view_on_text_item_event): select the corresponding time range when showing the contextual menu for an event * gui/e-week-view-event-item.c (e_week_view_event_item_button_press): select the corresponding time range when showing the contextual menu for an event Fixes #14660 svn path=/trunk/; revision=17924
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r--calendar/gui/e-week-view-event-item.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index f680be8f0d..eb102a9b97 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -797,6 +797,9 @@ e_week_view_event_item_button_press (EWeekViewEventItem *wveitem,
} else if (bevent->button.button == 3) {
if (!GTK_WIDGET_HAS_FOCUS (week_view))
gtk_widget_grab_focus (GTK_WIDGET (week_view));
+
+ e_week_view_set_selected_time_range (week_view, event->start, event->end);
+
e_week_view_show_popup_menu (week_view,
(GdkEventButton*) bevent,
wveitem->event_num);