Function

Pidginsetup_screenname_autocomplete

Declaration [src]

void
pidgin_setup_screenname_autocomplete (
  GtkWidget* entry,
  GtkWidget* chooser,
  PidginFilterBuddyCompletionEntryFunc filter_func,
  gpointer user_data
)

Description [src]

Add autocompletion of screenames to an entry, supporting a filtering function.

Parameters

entry GtkWidget
 

The GtkEntry on which to setup autocomplete.

 The data is owned by the caller of the function.
chooser GtkWidget
 

A menu for accounts, returned by pidgin_account_chooser_new(). If chooser is not NULL, it’ll be updated when a username is chosen from the autocomplete list.

 The data is owned by the caller of the function.
filter_func PidginFilterBuddyCompletionEntryFunc
 

A function for checking if an autocomplete entry should be shown. This can be NULL.

user_data gpointer
 

The data to be passed to the filter_func function.

 The argument can be NULL.
 The data is owned by the caller of the function.