Mercurial > pidgin.yaz
comparison console/libgnt/gntmenuitem.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 | c8cd118653fc |
comparison
equal
deleted
inserted
replaced
14615:bddedf8e4653 | 14616:f1f1dcb26d89 |
---|---|
54 } | 54 } |
55 | 55 |
56 return type; | 56 return type; |
57 } | 57 } |
58 | 58 |
59 GObject *gnt_menuitem_new(const char *text) | 59 GntMenuItem *gnt_menuitem_new(const char *text) |
60 { | 60 { |
61 GObject *item = g_object_new(GNT_TYPE_MENUITEM, NULL); | 61 GObject *item = g_object_new(GNT_TYPE_MENUITEM, NULL); |
62 GntMenuItem *menuitem = GNT_MENUITEM(item); | 62 GntMenuItem *menuitem = GNT_MENUITEM(item); |
63 | 63 |
64 menuitem->text = g_strdup(text); | 64 menuitem->text = g_strdup(text); |
65 | 65 |
66 return item; | 66 return menuitem; |
67 } | 67 } |
68 | 68 |
69 void gnt_menuitem_set_callback(GntMenuItem *item, GntMenuItemCallback callback, gpointer data) | 69 void gnt_menuitem_set_callback(GntMenuItem *item, GntMenuItemCallback callback, gpointer data) |
70 { | 70 { |
71 item->callback = callback; | 71 item->callback = callback; |