--- a/gntmenu.h Mon Nov 12 17:13:44 2007 +0000
+++ b/gntmenu.h Wed Nov 14 00:09:06 2007 +0000
@@ -108,7 +108,7 @@
void gnt_menu_add_item(GntMenu *menu, GntMenuItem *item);
- * Activate and return the GntMenuItem with the given ID.
+ * Return the GntMenuItem with the given ID. * @param id The ID for an item.
--- a/gntwm.c Mon Nov 12 17:13:44 2007 +0000
+++ b/gntwm.c Wed Nov 14 00:09:06 2007 +0000
@@ -1876,8 +1876,11 @@
GntMenu *menu = GNT_WINDOW(win)->menu;
const char *id = gnt_window_get_accel_item(GNT_WINDOW(win), keys);
- ret = (gnt_menu_get_item(menu, id) != NULL);
+ GntMenuItem *item = gnt_menu_get_item(menu, id); + ret = gnt_menuitem_activate(item);