comparison src/protocols/yahoo/yahoo.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 511c2b63caa4
children 0c68d402f59f
comparison
equal deleted inserted replaced
4332:c8f374cadbd9 4333:cc2f780c0505
1127 yahoo_packet_free(pkt); 1127 yahoo_packet_free(pkt);
1128 1128
1129 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", entry); 1129 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", entry);
1130 } 1130 }
1131 1131
1132 static void yahoo_do_action(struct gaim_connection *gc, char *act) 1132 static void yahoo_show_act_id(struct gaim_connection *gc)
1133 { 1133 {
1134 if (!strcmp(act, "Activate ID")) { 1134 do_prompt_dialog("Activate which ID:", gc->displayname, gc, yahoo_act_id, NULL);
1135 do_prompt_dialog("Activate which ID:", gc->displayname, gc, yahoo_act_id, NULL); 1135 }
1136 } 1136
1137 } 1137 static GList *yahoo_actions(struct gaim_connection *gc) {
1138
1139 static GList *yahoo_actions() {
1140 GList *m = NULL; 1138 GList *m = NULL;
1141 1139 struct proto_actions_menu *pam;
1142 m = g_list_append(m, "Activate ID"); 1140
1141 pam = g_new0(struct proto_actions_menu, 1);
1142 pam->label = _("Activate ID");
1143 pam->callback = yahoo_show_act_id;
1144 pam->gc = gc;
1145 m = g_list_append(m, pam);
1143 1146
1144 return m; 1147 return m;
1145 } 1148 }
1146 1149
1147 static int yahoo_send_im(struct gaim_connection *gc, char *who, char *what, int len, int flags) 1150 static int yahoo_send_im(struct gaim_connection *gc, char *who, char *what, int len, int flags)
1345 ret->login = yahoo_login; 1348 ret->login = yahoo_login;
1346 ret->close = yahoo_close; 1349 ret->close = yahoo_close;
1347 ret->buddy_menu = yahoo_buddy_menu; 1350 ret->buddy_menu = yahoo_buddy_menu;
1348 ret->list_icon = yahoo_list_icon; 1351 ret->list_icon = yahoo_list_icon;
1349 ret->actions = yahoo_actions; 1352 ret->actions = yahoo_actions;
1350 ret->do_action = yahoo_do_action;
1351 ret->send_im = yahoo_send_im; 1353 ret->send_im = yahoo_send_im;
1352 ret->away_states = yahoo_away_states; 1354 ret->away_states = yahoo_away_states;
1353 ret->set_away = yahoo_set_away; 1355 ret->set_away = yahoo_set_away;
1354 ret->set_idle = yahoo_set_idle; 1356 ret->set_idle = yahoo_set_idle;
1355 ret->keepalive = yahoo_keepalive; 1357 ret->keepalive = yahoo_keepalive;