aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-06-06 04:02:55 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-06-06 04:02:55 +0800
commitd847c51de4d285dffa9ccdf83320576e23d23047 (patch)
tree6c9c3dbc5cfc2683ca50ea0272d97cb9a6d1dc0c /calendar/gui/e-week-view.c
parentb5d09823135a560ad4bb1dcaa3f15063e4291e0b (diff)
downloadgsoc2013-evolution-d847c51de4d285dffa9ccdf83320576e23d23047.tar.gz
gsoc2013-evolution-d847c51de4d285dffa9ccdf83320576e23d23047.tar.zst
gsoc2013-evolution-d847c51de4d285dffa9ccdf83320576e23d23047.zip
allow the right button to popup the menu, even when the event is being
2000-06-05 Damon Chaplin <damon@helixcode.com> * gui/e-week-view-event-item.c (e_week_view_event_item_button_press): allow the right button to popup the menu, even when the event is being edited. * gui/e-week-view.c: * gui/e-day-view.c: Set the keyboard focus to the EDayView/EWeekView when the right button is clicked, so that any event being edited is saved before any action (e.g. opening the Event Editor dialog) is started. Note that this won't work if we switch to asynchronous notification. svn path=/trunk/; revision=3427
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 8eb053e28b..c09d3fc541 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -1353,6 +1353,8 @@ e_week_view_on_button_press (GtkWidget *widget,
gtk_widget_queue_draw (week_view->main_canvas);
}
} else if (event->button == 3) {
+ if (!GTK_WIDGET_HAS_FOCUS (week_view))
+ gtk_widget_grab_focus (GTK_WIDGET (week_view));
e_week_view_show_popup_menu (week_view, event, -1);
}
@@ -2227,6 +2229,8 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item,
return FALSE;
if (event->button.button == 3) {
+ if (!GTK_WIDGET_HAS_FOCUS (week_view))
+ gtk_widget_grab_focus (GTK_WIDGET (week_view));
e_week_view_show_popup_menu (week_view,
(GdkEventButton*) event,
event_num);