comparison src/protocols/gg/gg.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 c1857c9c912d
children 0c68d402f59f
comparison
equal deleted inserted replaced
4332:c8f374cadbd9 4333:cc2f780c0505
1 /* 1 /*
2 * gaim - Gadu-Gadu Protocol Plugin 2 * gaim - Gadu-Gadu Protocol Plugin
3 * $Id: gg.c 4474 2003-01-07 20:57:48Z thekingant $ 3 * $Id: gg.c 4597 2003-01-18 01:58:00Z thekingant $
4 * 4 *
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
1155 g_free(hpass); 1155 g_free(hpass);
1156 return; 1156 return;
1157 } 1157 }
1158 } 1158 }
1159 1159
1160 static void agg_do_action(struct gaim_connection *gc, char *action) 1160 static GList *agg_actions(struct gaim_connection *gc)
1161 {
1162 if (!strcmp(action, _("Directory Search"))) {
1163 show_find_info(gc);
1164 } else if (!strcmp(action, _("Change Password"))) {
1165 show_change_passwd(gc);
1166 } else if (!strcmp(action, _("Import Buddy List from Server"))) {
1167 import_buddies_server(gc);
1168 } else if (!strcmp(action, _("Export Buddy List to Server"))) {
1169 export_buddies_server(gc);
1170 } else if (!strcmp(action, _("Delete Buddy List from Server"))) {
1171 delete_buddies_server(gc);
1172 }
1173 }
1174
1175 static GList *agg_actions()
1176 { 1161 {
1177 GList *m = NULL; 1162 GList *m = NULL;
1178 1163 struct proto_actions_menu *pam;
1179 m = g_list_append(m, _("Directory Search")); 1164
1165 pam = g_new0(struct proto_actions_menu, 1);
1166 pam->label = _("Directory Search");
1167 pam->callback = show_find_info;
1168 pam->gc = gc;
1169 m = g_list_append(m, pam);
1170
1180 m = g_list_append(m, NULL); 1171 m = g_list_append(m, NULL);
1181 m = g_list_append(m, _("Change Password")); 1172
1173 pam = g_new0(struct proto_actions_menu, 1);
1174 pam->label = _("Change Password");
1175 pam->callback = show_change_passwd;
1176 pam->gc = gc;
1177 m = g_list_append(m, pam);
1178
1182 m = g_list_append(m, NULL); 1179 m = g_list_append(m, NULL);
1183 m = g_list_append(m, _("Import Buddy List from Server")); 1180
1184 m = g_list_append(m, _("Export Buddy List to Server")); 1181 pam = g_new0(struct proto_actions_menu, 1);
1185 m = g_list_append(m, _("Delete Buddy List from Server")); 1182 pam->label = _("Import Buddy List from Server");
1183 pam->callback = import_buddies_server;
1184 pam->gc = gc;
1185 m = g_list_append(m, pam);
1186
1187 pam = g_new0(struct proto_actions_menu, 1);
1188 pam->label = _("Export Buddy List to Server");
1189 pam->callback = export_buddies_server;
1190 pam->gc = gc;
1191 m = g_list_append(m, pam);
1192
1193 pam = g_new0(struct proto_actions_menu, 1);
1194 pam->label = _("Delete Buddy List from Server");
1195 pam->callback = delete_buddies_server;
1196 pam->gc = gc;
1197 m = g_list_append(m, pam);
1186 1198
1187 return m; 1199 return m;
1188 } 1200 }
1189 1201
1190 static void agg_get_info(struct gaim_connection *gc, char *who) 1202 static void agg_get_info(struct gaim_connection *gc, char *who)
1256 ret->options = 0; 1268 ret->options = 0;
1257 ret->name = g_strdup("Gadu-Gadu"); 1269 ret->name = g_strdup("Gadu-Gadu");
1258 ret->list_icon = agg_list_icon; 1270 ret->list_icon = agg_list_icon;
1259 ret->away_states = agg_away_states; 1271 ret->away_states = agg_away_states;
1260 ret->actions = agg_actions; 1272 ret->actions = agg_actions;
1261 ret->do_action = agg_do_action;
1262 ret->buddy_menu = agg_buddy_menu; 1273 ret->buddy_menu = agg_buddy_menu;
1263 ret->chat_info = NULL; 1274 ret->chat_info = NULL;
1264 ret->login = agg_login; 1275 ret->login = agg_login;
1265 ret->close = agg_close; 1276 ret->close = agg_close;
1266 ret->send_im = agg_send_im; 1277 ret->send_im = agg_send_im;