aboutsummaryrefslogtreecommitdiff
path: root/src/idoentrymenuitem.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-03-18 13:24:02 -0500
committerCody Russell <crussell@canonical.com>2010-03-18 13:24:02 -0500
commit9a3de4a397a7f53fafcae54c0e7d6b19827ebe95 (patch)
treee51796ee56e10b58a4857c9d84a8a3f72f123d30 /src/idoentrymenuitem.c
parente27e482b6979d8a358928d172da4315e965fd63b (diff)
downloadayatana-ido-9a3de4a397a7f53fafcae54c0e7d6b19827ebe95.tar.gz
ayatana-ido-9a3de4a397a7f53fafcae54c0e7d6b19827ebe95.tar.bz2
ayatana-ido-9a3de4a397a7f53fafcae54c0e7d6b19827ebe95.zip
Don't return TRUE if keyval is GDK_Return.
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r--src/idoentrymenuitem.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c
index 8cac5b6..8e7ab5c 100644
--- a/src/idoentrymenuitem.c
+++ b/src/idoentrymenuitem.c
@@ -73,7 +73,7 @@ ido_entry_menu_item_class_init (IdoEntryMenuItemClass *klass)
item_class->select = ido_entry_menu_item_select;
item_class->deselect = ido_entry_menu_item_deselect;
- menu_item_class->hide_on_activate = FALSE;
+ menu_item_class->hide_on_activate = TRUE;
g_type_class_add_private (gobject_class, sizeof (IdoEntryMenuItemPrivate));
}
@@ -150,7 +150,11 @@ ido_entry_menu_item_key_press (GtkWidget *widget,
gtk_widget_event (menuitem->priv->entry,
((GdkEvent *)(void*)(event)));
- return TRUE;
+ /* We've handled the event, but if the key was GDK_Return
+ * we still want to forward the event up to the menu shell
+ * to ensure that the menuitem receives the activate signal.
+ */
+ return event->keyval != GDK_Return;
}
return FALSE;