Mercurial > pidgin
diff src/toc.c @ 1499:de0b946e86a4
[gaim-migrate @ 1509]
woohoo, i'm back.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 23 Feb 2001 23:58:35 +0000 |
parents | 5a5284be5d66 |
children | ba83e9e2fd9b |
line wrap: on
line diff
--- a/src/toc.c Thu Feb 22 23:07:34 2001 +0000 +++ b/src/toc.c Fri Feb 23 23:58:35 2001 +0000 @@ -911,7 +911,7 @@ serv_get_dir(gc, who); } -static void toc_action_menu(GtkWidget *menu, struct gaim_connection *gc, char *who) +static void toc_buddy_menu(GtkWidget *menu, struct gaim_connection *gc, char *who) { GtkWidget *button; @@ -1206,6 +1206,28 @@ return g_list_append(NULL, GAIM_AWAY_CUSTOM); } +static void toc_do_action(struct gaim_connection *gc, char *act) +{ + if (!strcmp(act, "Set User Info")) { + show_set_info(gc); + } else if (!strcmp(act, "Set Dir Info")) { + show_set_dir(gc); + } else if (!strcmp(act, "Change Password")) { + show_change_passwd(gc); + } +} + +static GList *toc_actions() +{ + GList *m = NULL; + + m = g_list_append(m, "Set User Info"); + m = g_list_append(m, "Set Dir Info"); + m = g_list_append(m, "Change Password"); + + return m; +} + void toc_init(struct prpl *ret) { ret->protocol = PROTO_TOC; @@ -1213,7 +1235,9 @@ ret->name = toc_name; ret->list_icon = toc_list_icon; ret->away_states = toc_away_states; - ret->action_menu = toc_action_menu; + ret->actions = toc_actions; + ret->do_action = toc_do_action; + ret->buddy_menu = toc_buddy_menu; ret->user_opts = toc_user_opts; ret->draw_new_user = toc_draw_new_user; ret->do_new_user = toc_do_new_user;