pidgin/gtkutils.h

changeset 39785
aa7e3b71802d
parent 39703
0d0646e7c401
child 39786
7800f52d0ae6
equal deleted inserted replaced
39784:77e253a26eb9 39785:aa7e3b71802d
280 * Gets the currently selected protocol from a protocol drop down box. 280 * Gets the currently selected protocol from a protocol drop down box.
281 * 281 *
282 * Returns: Returns the protocol ID that is currently selected. 282 * Returns: Returns the protocol ID that is currently selected.
283 */ 283 */
284 const char *pidgin_protocol_option_menu_get_selected(GtkWidget *optmenu); 284 const char *pidgin_protocol_option_menu_get_selected(GtkWidget *optmenu);
285
286 /**
287 * pidgin_account_option_menu_new:
288 * @default_account: The account to select by default.
289 * @show_all: Whether or not to show all accounts, or just
290 * active accounts.
291 * @cb: (scope call): The callback to call when an account is selected.
292 * @filter_func: (scope call): A function for checking if an account should
293 * be shown. This can be NULL.
294 * @user_data: Data to pass to the callback function.
295 *
296 * Creates a drop-down option menu filled with accounts.
297 *
298 * Returns: (transfer full): The drop-down option menu.
299 */
300 GtkWidget *pidgin_account_option_menu_new(PurpleAccount *default_account,
301 gboolean show_all, GCallback cb,
302 PurpleFilterAccountFunc filter_func, gpointer user_data);
303
304 /**
305 * pidgin_account_option_menu_get_selected:
306 * @optmenu: The drop-down option menu created by
307 * pidgin_account_option_menu_new.
308 *
309 * Gets the currently selected account from an account drop down box.
310 *
311 * Returns: (transfer none): Returns the PurpleAccount that is currently selected.
312 */
313 PurpleAccount *pidgin_account_option_menu_get_selected(GtkWidget *optmenu);
314
315 /**
316 * pidgin_account_option_menu_set_selected:
317 * @optmenu: The GtkOptionMenu created by
318 * pidgin_account_option_menu_new.
319 * @account: The PurpleAccount to select.
320 *
321 * Sets the currently selected account for an account drop down box.
322 */
323 void pidgin_account_option_menu_set_selected(GtkWidget *optmenu, PurpleAccount *account);
324 285
325 /** 286 /**
326 * pidgin_setup_screenname_autocomplete: 287 * pidgin_setup_screenname_autocomplete:
327 * @entry: The GtkEntry on which to setup autocomplete. 288 * @entry: The GtkEntry on which to setup autocomplete.
328 * @optmenu: A menu for accounts, returned by pidgin_account_option_menu_new(). 289 * @optmenu: A menu for accounts, returned by pidgin_account_option_menu_new().

mercurial