Mercurial > pidgin.yaz
diff finch/libgnt/gntwm.c @ 21483:a4860971f861
Update the ChangeLog.API and change how gnt_menu_get_item works.
On a different note, 'IM experience' is such a dirty phrase. PUKE!
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 14 Nov 2007 00:09:06 +0000 |
parents | d78e440584e0 |
children | 6f6f8af235eb |
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c Tue Nov 13 22:45:51 2007 +0000 +++ b/finch/libgnt/gntwm.c Wed Nov 14 00:09:06 2007 +0000 @@ -1876,8 +1876,11 @@ GntMenu *menu = GNT_WINDOW(win)->menu; if (menu) { const char *id = gnt_window_get_accel_item(GNT_WINDOW(win), keys); - if (id) - ret = (gnt_menu_get_item(menu, id) != NULL); + if (id) { + GntMenuItem *item = gnt_menu_get_item(menu, id); + if (item) + ret = gnt_menuitem_activate(item); + } } } if (!ret)