Mercurial > pidgin.yaz
comparison finch/libgnt/gntmenuitem.h @ 21161:e119edfc0fb0
applied changes from 172a59b41412c4630834d66f2e7ec3be970cc36b
through 365b126365cc18309aea7f8eef0e9b2a19e6bda8
And others.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 07 Nov 2007 14:07:52 +0000 |
parents | bddf964880cf |
children | 6de09629f091 |
comparison
equal
deleted
inserted
replaced
21160:45e550db32ab | 21161:e119edfc0fb0 |
---|---|
84 }; | 84 }; |
85 | 85 |
86 G_BEGIN_DECLS | 86 G_BEGIN_DECLS |
87 | 87 |
88 /** | 88 /** |
89 * | 89 * @return GType for GntMenuItem. |
90 * | |
91 * @return | |
92 */ | 90 */ |
93 GType gnt_menuitem_get_gtype(void); | 91 GType gnt_menuitem_get_gtype(void); |
94 | 92 |
95 /** | 93 /** |
96 * | 94 * Create a new menuitem. |
97 * @param text | |
98 * | 95 * |
99 * @return | 96 * @param text Label for the menuitem. |
97 * | |
98 * @return The newly created menuitem. | |
100 */ | 99 */ |
101 GntMenuItem * gnt_menuitem_new(const char *text); | 100 GntMenuItem * gnt_menuitem_new(const char *text); |
102 | 101 |
103 /** | 102 /** |
104 * | 103 * Set a callback function for a menuitem. |
105 * @param item | 104 * |
106 * @param callback | 105 * @param item The menuitem. |
107 * @param data | 106 * @param callback The callback function. |
107 * @param data Data to send to the callback function. | |
108 */ | 108 */ |
109 void gnt_menuitem_set_callback(GntMenuItem *item, GntMenuItemCallback callback, gpointer data); | 109 void gnt_menuitem_set_callback(GntMenuItem *item, GntMenuItemCallback callback, gpointer data); |
110 | 110 |
111 /** | 111 /** |
112 * | 112 * Set a submenu for a menuitem. A menuitem with a submenu cannot have a callback. |
113 * @param item | 113 * |
114 * @param menu | 114 * @param item The menuitem. |
115 * @param menu The submenu. | |
115 */ | 116 */ |
116 void gnt_menuitem_set_submenu(GntMenuItem *item, GntMenu *menu); | 117 void gnt_menuitem_set_submenu(GntMenuItem *item, GntMenu *menu); |
117 | 118 |
118 /** | 119 /** |
119 * Set a trigger key for the item. | 120 * Set a trigger key for the item. |