comparison 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
comparison
equal deleted inserted replaced
5643:eb685809108b 5644:213e999fa5cc
24 #ifndef _GAIM_GTK_UTILS_H_ 24 #ifndef _GAIM_GTK_UTILS_H_
25 #define _GAIM_GTK_UTILS_H_ 25 #define _GAIM_GTK_UTILS_H_
26 26
27 #include "gaim.h" 27 #include "gaim.h"
28 #include "conversation.h" 28 #include "conversation.h"
29 #include "prpl.h"
29 30
30 /** 31 /**
31 * Sets up a gtkimhtml widget, loads it with smileys, and sets the 32 * Sets up a gtkimhtml widget, loads it with smileys, and sets the
32 * default signal handlers. 33 * default signal handlers.
33 * 34 *
161 * 162 *
162 * @return The vbox to put things into. 163 * @return The vbox to put things into.
163 */ 164 */
164 GtkWidget *gaim_gtk_make_frame(GtkWidget *parent, const char *title); 165 GtkWidget *gaim_gtk_make_frame(GtkWidget *parent, const char *title);
165 166
167 /**
168 * Creates a drop-down option menu filled with protocols.
169 *
170 * @param protocol The protocol to select by default.
171 * @param cb The callback to call when a protocol is selected.
172 * @param user_data Data to pass to the callback function.
173 *
174 * @return The drop-down option menu.
175 */
176 GtkWidget *gaim_gtk_protocol_option_menu_new(GaimProtocol protocol,
177 GCallback cb,
178 gpointer user_data);
179
166 #endif /* _GAIM_GTK_UTILS_H_ */ 180 #endif /* _GAIM_GTK_UTILS_H_ */