aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c6
1 files changed, 6 insertions, 0 deletions
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);
}