im.pidgin.pidgin.next.minor: 8d2518d637bbff7036a2d03f4be0e5c4edc6c108
sadrul at pidgin.im
sadrul at pidgin.im
Mon Nov 5 17:21:06 EST 2007
-----------------------------------------------------------------
Revision: 8d2518d637bbff7036a2d03f4be0e5c4edc6c108
Ancestor: 58a7a68ec9891c7989ec16c0a3d52f9756de75db
Author: sadrul at pidgin.im
Date: 2007-11-05T18:29:20
Branch: im.pidgin.pidgin.next.minor
Modified files:
finch/gntpounce.c
ChangeLog:
Enable auto-complete in the pounce dialog.
-------------- next part --------------
============================================================
--- finch/gntpounce.c 1f96dd70b5066611be057457c9e1140fd5f22a52
+++ finch/gntpounce.c f616d1bde4df388e75762c60a99141dc3844d930
@@ -168,6 +168,17 @@ static void
}
static void
+setup_buddy_list_suggestion(GntEntry *entry, gboolean offline)
+{
+ PurpleBlistNode *node = purple_blist_get_root();
+ for (; node; node = purple_blist_node_next(node, offline)) {
+ if (!PURPLE_BLIST_NODE_IS_BUDDY(node))
+ continue;
+ gnt_entry_add_suggest(entry, purple_buddy_get_name((PurpleBuddy*)node));
+ }
+}
+
+static void
save_pounce_cb(GntWidget *w, PurpleGntPounceDialog *dialog)
{
const char *name;
@@ -360,6 +371,8 @@ finch_pounce_editor_show(PurpleAccount *
dialog->buddy_entry = gnt_entry_new(NULL);
gnt_box_add_widget(GNT_BOX(hbox), dialog->buddy_entry);
+ setup_buddy_list_suggestion(GNT_ENTRY(dialog->buddy_entry), TRUE);
+
gnt_box_add_widget(GNT_BOX(window), hbox);
if (cur_pounce != NULL) {
More information about the Commits
mailing list