Revision d4f7294caf2fe548806608d216c63f9e6011d303
wabz at pidgin.im
wabz at pidgin.im
Mon Mar 19 19:51:51 EDT 2007
o -----------------------------------------------------------------
| Revision: d4f7294caf2fe548806608d216c63f9e6011d303
| Ancestor: 328a1d44ee2fec67aaaef7826dc010e9ad670b8c
| Author: wabz at pidgin.im
| Date: 2007-03-19T23:49:30
| Branch: im.pidgin.pidgin
|
| Modified files:
| finch/gntblist.c finch/gntrequest.c
|
| ChangeLog:
|
| Group autocomplete for buddy adding
|
| ============================================================
| --- finch/gntblist.c ab8c261313c98064e035fec2e5d1e79e9c389626
| +++ finch/gntblist.c 36decfcb5c489399aa2977a88dc77e2d6ea2c966
| @@ -304,6 +304,7 @@ finch_request_add_buddy(PurpleAccount *a
|
| field = purple_request_field_string_new("group", _("Group"), grp, FALSE);
| purple_request_field_group_add_field(group, field);
| + purple_request_field_set_type_hint(field, "group");
|
| field = purple_request_field_account_new("account", _("Account"), NULL);
| purple_request_field_account_set_show_all(field, FALSE);
| ============================================================
| --- finch/gntrequest.c 32af58a8d6835028ece46823da876fb3f2b8d000
| +++ finch/gntrequest.c bca60696cf91c487a204237b474459a8a62320b4
| @@ -398,6 +398,12 @@ finch_request_fields(const char *title,
| gnt_entry_add_suggest(GNT_ENTRY(entry), purple_buddy_get_name((PurpleBuddy*)node));
| }
| gnt_entry_set_always_suggest(GNT_ENTRY(entry), TRUE);
| + } else if (hint && !strcmp(hint, "group")) {
| + PurpleBlistNode *node;
| + for (node = purple_blist_get_root(); node; node = node->next) {
| + if (PURPLE_BLIST_NODE_IS_GROUP(node))
| + gnt_entry_add_suggest(GNT_ENTRY(entry), ((PurpleGroup *)node)->name);
| + }
| }
| gnt_box_add_widget(GNT_BOX(hbox), entry);
| field->ui_data = entry;
To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from d4f7294caf2fe548806608d216c63f9e6011d303
More information about the Commits
mailing list