Mercurial > pidgin
diff src/protocols/zephyr/zephyr.c @ 9030:7ab20f829190
[gaim-migrate @ 9806]
Siege updated the code for creating right-click menu's for
buddies, chats, groups, etc. It uses more stuff from the blist
API and less stuff from multi.h. It also combines the code
for right-click menus for chats, buddies, etc. (all types of
blist nodes). So PRPLs and plugins can easily add right-click
menu options to anything in the buddy list in a clean way.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 May 2004 17:27:45 +0000 |
parents | 67421e0dc497 |
children | b3bda982996b |
line wrap: on
line diff
--- a/src/protocols/zephyr/zephyr.c Sun May 23 08:06:38 2004 +0000 +++ b/src/protocols/zephyr/zephyr.c Sun May 23 17:27:45 2004 +0000 @@ -1144,30 +1144,14 @@ return buf; } -static void zephyr_zloc(GaimConnection * gc, const char *who) +static void zephyr_zloc(GaimConnection *gc, const char *who) { ZAsyncLocateData_t ald; - if (ZRequestLocations(local_zephyr_normalize(who), &ald, UNACKED, ZAUTH) - != ZERR_NONE) { - return; + if (ZRequestLocations(local_zephyr_normalize(who), &ald, UNACKED, ZAUTH) == ZERR_NONE) { + pending_zloc_names = g_list_append(pending_zloc_names, + g_strdup(local_zephyr_normalize(who))); } - pending_zloc_names = g_list_append(pending_zloc_names, g_strdup(local_zephyr_normalize(who))); -} - -static GList *zephyr_buddy_menu(GaimConnection * gc, const char *who) -{ - GList *m = NULL; - struct proto_buddy_menu *pbm; - - pbm = g_new0(struct proto_buddy_menu, 1); - - pbm->label = _("ZLocate"); - pbm->callback = zephyr_zloc; - pbm->gc = gc; - m = g_list_append(m, pbm); - - return m; } static void zephyr_set_away(GaimConnection * gc, const char *state, const char *msg) @@ -1307,7 +1291,7 @@ NULL, NULL, zephyr_away_states, - zephyr_buddy_menu, + NULL, zephyr_chat_info, zephyr_login, zephyr_close, @@ -1351,7 +1335,6 @@ NULL, NULL, NULL, - NULL, NULL };