| 234 GtkWidget *pidgin_protocol_option_menu_new(const char *id, |
234 GtkWidget *pidgin_protocol_option_menu_new(const char *id, |
| 235 GCallback cb, |
235 GCallback cb, |
| 236 gpointer user_data); |
236 gpointer user_data); |
| 237 |
237 |
| 238 /** |
238 /** |
| |
239 * Gets the currently selected protocol from a protocol drop down box. |
| |
240 * |
| |
241 * @param optmenu The drop-down option menu created by |
| |
242 * pidgin_account_option_menu_new. |
| |
243 * @return Returns the protocol ID that is currently selected. |
| |
244 */ |
| |
245 const char *pidgin_protocol_option_menu_get_selected(GtkWidget *optmenu); |
| |
246 |
| |
247 /** |
| 239 * Creates a drop-down option menu filled with accounts. |
248 * Creates a drop-down option menu filled with accounts. |
| 240 * |
249 * |
| 241 * @param default_account The account to select by default. |
250 * @param default_account The account to select by default. |
| 242 * @param show_all Whether or not to show all accounts, or just |
251 * @param show_all Whether or not to show all accounts, or just |
| 243 * active accounts. |
252 * active accounts. |
| 253 PurpleFilterAccountFunc filter_func, gpointer user_data); |
262 PurpleFilterAccountFunc filter_func, gpointer user_data); |
| 254 |
263 |
| 255 /** |
264 /** |
| 256 * Gets the currently selected account from an account drop down box. |
265 * Gets the currently selected account from an account drop down box. |
| 257 * |
266 * |
| 258 * @param optmenu The GtkOptionMenu created by |
267 * @param optmenu The drop-down option menu created by |
| 259 * pidgin_account_option_menu_new. |
268 * pidgin_account_option_menu_new. |
| 260 * @return Returns the PurpleAccount that is currently selected. |
269 * @return Returns the PurpleAccount that is currently selected. |
| 261 */ |
270 */ |
| 262 PurpleAccount *pidgin_account_option_menu_get_selected(GtkWidget *optmenu); |
271 PurpleAccount *pidgin_account_option_menu_get_selected(GtkWidget *optmenu); |
| 263 |
272 |