diff src/gtkutils.h @ 13360:2e6dda9f9159

[gaim-migrate @ 15733] SF Patch #1440729 from Sadrul Closes SF Feature Request #1414706 "This moves some stuff from gtkrequest.c to gtkutils.c -- this allows to setup autocomplete for entries that deal with screen-names of the buddies. I have used this function in the pounce dialog -- so now it has auto-complete." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 01 Mar 2006 06:10:41 +0000
parents 3de53fe8345f
children ffd724befbf8
line wrap: on
line diff
--- a/src/gtkutils.h	Wed Mar 01 06:08:19 2006 +0000
+++ b/src/gtkutils.h	Wed Mar 01 06:10:41 2006 +0000
@@ -250,6 +250,17 @@
 void gaim_gtk_account_option_menu_set_selected(GtkWidget *optmenu, GaimAccount *account);
 
 /**
+ * Add autocompletion of screenames to an entry.
+ *
+ * @param entry     The GtkEntry on which to setup autocomplete.
+ * @param optmenu   A menu for accounts, returned by gaim_gtk_account_option_menu_new().
+ *                  If @a optmenu is not @c NULL, it'll be updated when a screenname is chosen
+ *                  from the autocomplete list.
+ * @param all       Whether to include screennames from disconnected accounts.
+ */
+void gaim_gtk_setup_screenname_autocomplete(GtkWidget *entry, GtkWidget *optmenu, gboolean all);
+
+/**
  * Check if the given path is a directory or not.  If it is, then modify
  * the given GtkFileSelection dialog so that it displays the given path.
  * If the given path is not a directory, then do nothing.