Mercurial > pidgin.yaz
diff src/gtkutils.h @ 5162:b8eafeb874a1
[gaim-migrate @ 5526]
After my last commit, Nathan promptly asked me if I remembered to move
the declarations for gaim_new_item and gaim_new_item_stock from one .h
file to the next, and I promptly cracked on his mom.
Robot101, or anyone else cool, if you want to fix the comments in
gtkutils.h for these 2 functions, that'd be terrif.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 18 Apr 2003 03:40:54 +0000 |
parents | 4691c5936c01 |
children | 3adb20b869b4 |
line wrap: on
line diff
--- a/src/gtkutils.h Fri Apr 18 03:26:42 2003 +0000 +++ b/src/gtkutils.h Fri Apr 18 03:40:54 2003 +0000 @@ -111,8 +111,34 @@ /** * Adds a seperator to a menu. * - * @param menu The menu to add a seperator to. + * @param menu The menu to add a seperator to. */ void gaim_separator(GtkWidget *menu); +/** + * Creates a menu item. + * + * @param menu The menu to which to append the menu item. + * @param str The title to use for the newly created menu item. + * + * @return The newly created menu item. + */ +GtkWidget *gaim_new_item(GtkWidget *menu, const char *str); + +/** + * Creates a menu item. + * + * @param menu The menu to which to append the menu item. + * @param str The title for the menu item. + * @param icon An icon to place to the left of the menu item, or NULL for no icon. + * @param sf A function to call when the menu item is activated. + * @param data Data to pass to the signal function. + * @param accel_key Something. + * @param accel_mods Something. + * @param mod Something. + * + * @return The newly created menu item. + */ +GtkWidget *gaim_new_item_from_stock(GtkWidget *menu, const char *str, const char *icon, GtkSignalFunc sf, gpointer data, guint accel_key, guint accel_mods, char *mod); + #endif /* _GAIM_GTK_UTILS_H_ */