diff options
author | JP Rosevear <jpr@ximian.com> | 2002-08-30 01:38:05 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-08-30 01:38:05 +0800 |
commit | a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3 (patch) | |
tree | dd4aceb9bb2fbdad3ea639c24ba1d050856a689a /calendar/gui/e-week-view.c | |
parent | bd94562c049c95452540e35e2655770fbbcc128b (diff) | |
download | gsoc2013-evolution-a15cb218338f5021e2d8c3e4dc6edf7bd4ee5fd3.tar.gz 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.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 2bf9805a24..dee9b03540 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -2199,6 +2199,14 @@ e_week_view_on_button_press (GtkWidget *widget, } else if (event->button == 3) { if (!GTK_WIDGET_HAS_FOCUS (week_view)) gtk_widget_grab_focus (GTK_WIDGET (week_view)); + + week_view->selection_start_day = day; + week_view->selection_end_day = day; + week_view->selection_drag_pos = E_WEEK_VIEW_DRAG_NONE; + + /* FIXME: Optimise? */ + gtk_widget_queue_draw (week_view->main_canvas); + e_week_view_show_popup_menu (week_view, event, -1); } @@ -3047,6 +3055,8 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item, if (!destroyed) { gtk_signal_disconnect (GTK_OBJECT (e->comp), id); + + e_week_view_set_selected_time_range (week_view, e->start, e->end); e_week_view_show_popup_menu (week_view, (GdkEventButton*) gdkevent, |