aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-21 04:09:51 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-21 04:10:39 +0800
commitc0f58abbd7f388d7301adfcb0906d4850a7dcb80 (patch)
tree29e7f788413bc7c9ac4e8d82b5a182b02eba8b6c /addressbook/gui
parent41dfcdb070f5c052908ca15bb304c91ae637795c (diff)
downloadgsoc2013-evolution-c0f58abbd7f388d7301adfcb0906d4850a7dcb80.tar
gsoc2013-evolution-c0f58abbd7f388d7301adfcb0906d4850a7dcb80.tar.gz
gsoc2013-evolution-c0f58abbd7f388d7301adfcb0906d4850a7dcb80.tar.bz2
gsoc2013-evolution-c0f58abbd7f388d7301adfcb0906d4850a7dcb80.tar.lz
gsoc2013-evolution-c0f58abbd7f388d7301adfcb0906d4850a7dcb80.tar.xz
gsoc2013-evolution-c0f58abbd7f388d7301adfcb0906d4850a7dcb80.tar.zst
gsoc2013-evolution-c0f58abbd7f388d7301adfcb0906d4850a7dcb80.zip
Bug 607542 - Sometimes delete in pop up doesn't get displayed
Diffstat (limited to 'addressbook/gui')
-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);
}