Mercurial > pidgin
diff finch/gntpounce.c @ 21300:abbf74f4732b
propagate from branch 'im.pidgin.pidgin' (head e3fd21e6dabb99e5604e8337380353fcbe1a7279)
to branch 'im.pidgin.elb.make' (head 7422b9a549f752c05cc75f0c8e56fdd2bced034a)
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 10 Nov 2007 16:17:54 +0000 |
parents | 47118f6062e9 |
children | 665e04562de0 |
line wrap: on
line diff
--- a/finch/gntpounce.c Tue Nov 06 17:13:21 2007 +0000 +++ b/finch/gntpounce.c Sat Nov 10 16:17:54 2007 +0000 @@ -168,6 +168,17 @@ } 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 @@ 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) { @@ -660,9 +673,9 @@ pouncer = purple_account_get_username(account); pouncee = purple_pounce_get_pouncee(pounce); buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); - purple_request_action(pounce, NULL, buf, NULL, 0, + purple_request_action_with_hint(pounce, NULL, buf, NULL, 0, account, pouncee, NULL, - pounce, 2, + PURPLE_REQUEST_UI_HINT_POUNCEMGR, pounce, 2, _("Delete"), pounces_manager_delete_confirm_cb, _("Cancel"), NULL); g_free(buf);