Mercurial > pidgin
diff src/protocols/oscar/oscar.c @ 7080:fc9c74cfb306
[gaim-migrate @ 7645]
Removed show_set_dir() and replaced show_find_email() in oscar.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Tue, 30 Sep 2003 22:41:02 +0000 |
| parents | 71e0da45abe6 |
| children | 25a616f16b6c |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Tue Sep 30 20:13:22 2003 +0000 +++ b/src/protocols/oscar/oscar.c Tue Sep 30 22:41:02 2003 +0000 @@ -6250,6 +6250,22 @@ g_free(text); } +static void search_by_email_cb(GaimConnection *gc, const char *email) +{ + serv_dir_search(gc, "", "", "", "", "", "", "", email); +} + +static void oscar_show_find_email(GaimConnection *gc) +{ + gaim_request_input(gc, _("Find Buddy by E-mail"), + _("Search for a buddy by e-mail address"), + _("Type the e-mail address of the buddy you are " + "searching for."), + NULL, FALSE, FALSE, + _("Search"), G_CALLBACK(search_by_email_cb), + _("Cancel"), NULL, gc); +} + #if 0 static void oscar_setavailmsg(GaimConnection *gc, char *text) { struct oscar_data *od = (struct oscar_data *)gc->proto_data; @@ -6406,7 +6422,7 @@ pam = g_new0(struct proto_actions_menu, 1); pam->label = _("Search for Buddy by Email"); - pam->callback = show_find_email; + pam->callback = oscar_show_find_email; pam->gc = gc; m = g_list_append(m, pam);
