Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
21481:84489b5529a7 | 21483:a4860971f861 |
---|---|
1874 GntWidget *win = wm->cws->ordered->data; | 1874 GntWidget *win = wm->cws->ordered->data; |
1875 if (GNT_IS_WINDOW(win)) { | 1875 if (GNT_IS_WINDOW(win)) { |
1876 GntMenu *menu = GNT_WINDOW(win)->menu; | 1876 GntMenu *menu = GNT_WINDOW(win)->menu; |
1877 if (menu) { | 1877 if (menu) { |
1878 const char *id = gnt_window_get_accel_item(GNT_WINDOW(win), keys); | 1878 const char *id = gnt_window_get_accel_item(GNT_WINDOW(win), keys); |
1879 if (id) | 1879 if (id) { |
1880 ret = (gnt_menu_get_item(menu, id) != NULL); | 1880 GntMenuItem *item = gnt_menu_get_item(menu, id); |
1881 if (item) | |
1882 ret = gnt_menuitem_activate(item); | |
1883 } | |
1881 } | 1884 } |
1882 } | 1885 } |
1883 if (!ret) | 1886 if (!ret) |
1884 ret = gnt_widget_key_pressed(win, keys); | 1887 ret = gnt_widget_key_pressed(win, keys); |
1885 } | 1888 } |