Mercurial > pidgin
diff src/gtkutils.h @ 5644:213e999fa5cc
[gaim-migrate @ 6058]
Added a generic function for creating and automatically filling a drop-down
with a list of loaded protocols plugins, and used it in the new account
editor.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 01 Jun 2003 23:14:31 +0000 |
parents | 2c4c975620f0 |
children | dae79aefac8d |
line wrap: on
line diff
--- a/src/gtkutils.h Sun Jun 01 21:36:40 2003 +0000 +++ b/src/gtkutils.h Sun Jun 01 23:14:31 2003 +0000 @@ -26,6 +26,7 @@ #include "gaim.h" #include "conversation.h" +#include "prpl.h" /** * Sets up a gtkimhtml widget, loads it with smileys, and sets the @@ -163,4 +164,17 @@ */ GtkWidget *gaim_gtk_make_frame(GtkWidget *parent, const char *title); +/** + * Creates a drop-down option menu filled with protocols. + * + * @param protocol The protocol to select by default. + * @param cb The callback to call when a protocol is selected. + * @param user_data Data to pass to the callback function. + * + * @return The drop-down option menu. + */ +GtkWidget *gaim_gtk_protocol_option_menu_new(GaimProtocol protocol, + GCallback cb, + gpointer user_data); + #endif /* _GAIM_GTK_UTILS_H_ */