Mercurial > pidgin.yaz
comparison console/libgnt/test/menu.c @ 14616:f1f1dcb26d89
[gaim-migrate @ 17344]
Add a barebone menu in the buddylist for account actions. (Press Ctrl+o)
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 24 Sep 2006 17:07:38 +0000 |
parents | 62bb53609a36 |
children |
comparison
equal
deleted
inserted
replaced
14615:bddedf8e4653 | 14616:f1f1dcb26d89 |
---|---|
46 gnt_menu_add_item(GNT_MENU(sub), GNT_MENUITEM(item)); | 46 gnt_menu_add_item(GNT_MENU(sub), GNT_MENUITEM(item)); |
47 gnt_menuitem_set_callback(GNT_MENUITEM(item), dothis, NULL); | 47 gnt_menuitem_set_callback(GNT_MENUITEM(item), dothis, NULL); |
48 | 48 |
49 gnt_screen_menu_show(menu); | 49 gnt_screen_menu_show(menu); |
50 | 50 |
51 | |
52 GntWidget *win = gnt_window_new(); | 51 GntWidget *win = gnt_window_new(); |
53 gnt_box_add_widget(GNT_BOX(win), | 52 gnt_box_add_widget(GNT_BOX(win), |
54 gnt_label_new("...")); | 53 gnt_label_new("...")); |
55 gnt_box_set_title(GNT_BOX(win), "Title"); | 54 gnt_box_set_title(GNT_BOX(win), "Title"); |
56 gnt_window_set_menu(GNT_WINDOW(win), GNT_MENU(menu)); | 55 gnt_window_set_menu(GNT_WINDOW(win), GNT_MENU(menu)); |