pidgin/gtkutils.h

changeset 37879
38eebb7c9019
parent 37589
e498a88e7c00
child 37994
11829debec7a
equal deleted inserted replaced
37774:bf8ed95aaa1c 37879:38eebb7c9019
234 * Returns: The separator. 234 * Returns: The separator.
235 */ 235 */
236 GtkWidget *pidgin_separator(GtkWidget *menu); 236 GtkWidget *pidgin_separator(GtkWidget *menu);
237 237
238 /** 238 /**
239 * pidgin_new_item:
240 * @menu: The menu to which to append the menu item.
241 * @str: The title to use for the newly created menu item.
242 *
243 * Creates a menu item.
244 *
245 * Returns: The newly created menu item.
246 */
247 GtkWidget *pidgin_new_item(GtkWidget *menu, const char *str);
248
249 /**
250 * pidgin_new_check_item: 239 * pidgin_new_check_item:
251 * @menu: The menu to which to append the check menu item. 240 * @menu: The menu to which to append the check menu item.
252 * @str: The title to use for the newly created menu item. 241 * @str: The title to use for the newly created menu item.
253 * @cb: A function to call when the menu item is activated. 242 * @cb: A function to call when the menu item is activated.
254 * @data: Data to pass to the signal function. 243 * @data: Data to pass to the signal function.
260 */ 249 */
261 GtkWidget *pidgin_new_check_item(GtkWidget *menu, const char *str, 250 GtkWidget *pidgin_new_check_item(GtkWidget *menu, const char *str,
262 GCallback cb, gpointer data, gboolean checked); 251 GCallback cb, gpointer data, gboolean checked);
263 252
264 /** 253 /**
265 * pidgin_new_item_from_stock: 254 * pidgin_new_menu_item:
266 * @menu: The menu to which to append the menu item. 255 * @menu: The menu to which to append the menu item.
267 * @str: The title for the menu item. 256 * @mnemonic: The title for the menu item.
268 * @icon: An icon to place to the left of the menu item, 257 * @icon: An icon to place to the left of the menu item,
269 * or %NULL for no icon. 258 * or %NULL for no icon.
270 * @cb: A function to call when the menu item is activated. 259 * @cb: A function to call when the menu item is activated.
271 * @data: Data to pass to the signal function. 260 * @data: Data to pass to the signal function.
272 * @accel_key: Something. 261 * @accel_key: Something.
275 * 264 *
276 * Creates a menu item. 265 * Creates a menu item.
277 * 266 *
278 * Returns: The newly created menu item. 267 * Returns: The newly created menu item.
279 */ 268 */
280 GtkWidget *pidgin_new_item_from_stock(GtkWidget *menu, const char *str, 269 GtkWidget *pidgin_new_menu_item(GtkWidget *menu, const char *mnemonic,
281 const char *icon, GCallback cb, 270 const char *icon, GCallback cb, gpointer data);
282 gpointer data, guint accel_key,
283 guint accel_mods, char *mod);
284 271
285 /** 272 /**
286 * pidgin_pixbuf_button_from_stock: 273 * pidgin_pixbuf_button_from_stock:
287 * @text: The text for the button. 274 * @text: The text for the button.
288 * @icon: The stock icon name. 275 * @icon: The stock icon name.

mercurial