From c0f58abbd7f388d7301adfcb0906d4850a7dcb80 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 20 Jan 2010 15:09:51 -0500 Subject: Bug 607542 - Sometimes delete in pop up doesn't get displayed --- addressbook/gui/widgets/e-addressbook-view.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 48058ad415..6ffeee56a0 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -138,6 +138,12 @@ static void addressbook_view_emit_popup_event (EAddressbookView *view, GdkEvent *event) { + /* Grab focus so that EFocusTracker asks us to update the + * selection-related actions before showing the popup menu. + * Apparently ETable doesn't automatically grab focus on + * right-clicks (is that a bug?). */ + gtk_widget_grab_focus (GTK_WIDGET (view)); + g_signal_emit (view, signals[POPUP_EVENT], 0, event); } -- cgit