Mercurial > pidgin
comparison src/protocols/msn/msn.c @ 4333:cc2f780c0505
[gaim-migrate @ 4597]
I needed to make gc->login_time set before do_proto_menu was called,
so I moved that line into account_online instead of
serv_finish_login. serv_finish_login is called directly after
account_online, and gc->login_time isn't used for anything anyway,
so it shouldn't matter.
I use gc->login_time to determine if a gc's protocol actions menu
is ready to be drawn or not (should not be draw for accounts that
are in the process of signing online).
I made the "Show Buddies Awaiting Authorization" thing show something
reasonable for when you aren't waiting for authorization from anyone.
I swapped the ok and cancel buttons for the search for buddy by
information and clear log file so they follow the HIG.
I gave the right side of the log viewer a shadowed border.
I Robot.
I applied a patch from Ryan McCabe that doesn't really do
anything for gaim (yet, anyway), but it allows clients
using libfaim to call cleansnacs cleanly, which stops a
potential build up of SNACs in memory when you don't send
an IM for a long period of time.
I applied another patch from Mr. McCabe that fixes a
potential crash in ssi.c when your buddy list is a few
lions short of a pride, if you know what I mean.
I re-prettified an authorization dialog or two. The
bold stuff and the non-bold stuff got backwardcised
somehow.
I added support for those messages from the ICQ server.
Like the one that tells you not to give your password to
anyone when you first signon.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 18 Jan 2003 01:58:00 +0000 |
parents | 1cfad48b7d93 |
children | 0c68d402f59f |
comparison
equal
deleted
inserted
replaced
4332:c8f374cadbd9 | 4333:cc2f780c0505 |
---|---|
2549 signoff(gc); | 2549 signoff(gc); |
2550 return; | 2550 return; |
2551 } | 2551 } |
2552 } | 2552 } |
2553 | 2553 |
2554 static void msn_do_action(struct gaim_connection *gc, char *act) | 2554 static void msn_show_set_friendly_name(struct gaim_connection *gc) |
2555 { | 2555 { |
2556 if (!strcmp(act, _("Set Friendly Name"))) { | 2556 do_prompt_dialog(_("Set Friendly Name:"), gc->displayname, gc, msn_act_id, NULL); |
2557 do_prompt_dialog(_("Set Friendly Name:"), gc->displayname, gc, msn_act_id, NULL); | 2557 } |
2558 } | 2558 |
2559 } | 2559 static GList *msn_actions(struct gaim_connection *gc) |
2560 | |
2561 static GList *msn_actions() | |
2562 { | 2560 { |
2563 GList *m = NULL; | 2561 GList *m = NULL; |
2564 | 2562 struct proto_actions_menu *pam; |
2565 m = g_list_append(m, _("Set Friendly Name")); | 2563 |
2564 pam = g_new0(struct proto_actions_menu, 1); | |
2565 pam->label = _("Set Friendly Name"); | |
2566 pam->callback = msn_show_set_friendly_name; | |
2567 pam->gc = gc; | |
2568 m = g_list_append(m, pam); | |
2566 | 2569 |
2567 return m; | 2570 return m; |
2568 } | 2571 } |
2569 | 2572 |
2570 static void msn_convo_closed(struct gaim_connection *gc, char *who) | 2573 static void msn_convo_closed(struct gaim_connection *gc, char *who) |
2835 ret->remove_buddy = msn_rem_buddy; | 2838 ret->remove_buddy = msn_rem_buddy; |
2836 ret->chat_send = msn_chat_send; | 2839 ret->chat_send = msn_chat_send; |
2837 ret->chat_invite = msn_chat_invite; | 2840 ret->chat_invite = msn_chat_invite; |
2838 ret->chat_leave = msn_chat_leave; | 2841 ret->chat_leave = msn_chat_leave; |
2839 ret->normalize = msn_normalize; | 2842 ret->normalize = msn_normalize; |
2840 ret->do_action = msn_do_action; | |
2841 ret->actions = msn_actions; | 2843 ret->actions = msn_actions; |
2842 ret->convo_closed = msn_convo_closed; | 2844 ret->convo_closed = msn_convo_closed; |
2843 ret->keepalive = msn_keepalive; | 2845 ret->keepalive = msn_keepalive; |
2844 ret->set_permit_deny = msn_set_permit_deny; | 2846 ret->set_permit_deny = msn_set_permit_deny; |
2845 ret->add_permit = msn_add_permit; | 2847 ret->add_permit = msn_add_permit; |