comparison src/protocols/gg/gg.c @ 4687:283fb289c510

[gaim-migrate @ 4998] This is a new buddy list. Lots of things about it just Don't Work. I probably already know about those things, and you'd just be wasting my time in submitting a bug report about it. I decided that instead of getting it to all work perfectly before committing, that I'd get it in cvs, and slowly fix it with regular commits. That way, it's easier to keep track of things, and other developers can help. Plus, I'm getting pissed off at the buddy list and want it to die. It's kinda boring, and doing nothing but the buddy list for such a long time has just gotten me very bitter. After 0.60 is released later this week, Gaim will resume being fun. This week is going to be very stressful, though, I'm sure. Things you ought to know about this buddy list: - It crashes - It leaks - There's no way to edit the buddy list, or access offline buddies - Most of the menus and buttons and whatnot just plain ol' don't work. - Status icons are only implemented for AIM. That's mostly just because I'm lazy. As such, you may want to be wary of updating this. If you do decide to update this, you may want to learn "cvs update -D yesterday" as well :) All the art there is just placeholder art. You probably won't really have as many problems as it sounds like you will from reading this. This message is extra-negative to stress that I don't want to be bothered with complaints about something not working about it :). I'll repeat: If something doesn't work, I probably already know about it. If you want to actually help with something, I'd be delighted to have it. IM me. -s. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 10 Mar 2003 05:30:31 +0000
parents d19872836812
children e19f91053ad0
comparison
equal deleted inserted replaced
4686:a1de8a9c99ba 4687:283fb289c510
1 /* 1 /*
2 * gaim - Gadu-Gadu Protocol Plugin 2 * gaim - Gadu-Gadu Protocol Plugin
3 * $Id: gg.c 4941 2003-03-02 18:48:02Z faceprint $ 3 * $Id: gg.c 4998 2003-03-10 05:30:31Z seanegan $
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
276 /* Enhance these functions, more options and such stuff */ 276 /* Enhance these functions, more options and such stuff */
277 static GList *agg_buddy_menu(struct gaim_connection *gc, char *who) 277 static GList *agg_buddy_menu(struct gaim_connection *gc, char *who)
278 { 278 {
279 GList *m = NULL; 279 GList *m = NULL;
280 struct proto_buddy_menu *pbm; 280 struct proto_buddy_menu *pbm;
281 struct buddy *b = find_buddy(gc->account, who); 281 struct buddy *b = gaim_find_buddy(gc->account, who);
282 static char buf[AGG_BUF_LEN]; 282 static char buf[AGG_BUF_LEN];
283 283
284 if (!b) { 284 if (!b) {
285 return m; 285 return m;
286 } 286 }
796 if (invalid_uin(name)) { 796 if (invalid_uin(name)) {
797 continue; 797 continue;
798 } 798 }
799 799
800 debug_printf("import_buddies_server_results: uin: %s\n", name); 800 debug_printf("import_buddies_server_results: uin: %s\n", name);
801 if (!find_buddy(gc->account, name)) { 801 if (!gaim_find_buddy(gc->account, name)) {
802 struct buddy *b;
803 struct group *g;
802 /* Default group if none specified on server */ 804 /* Default group if none specified on server */
803 gchar *group = g_strdup("Gadu-Gadu"); 805 gchar *group = g_strdup("Gadu-Gadu");
804 if (strlen(data_tbl[5])) { 806 if (strlen(data_tbl[5])) {
805 gchar **group_tbl = g_strsplit(data_tbl[5], ",", 2); 807 gchar **group_tbl = g_strsplit(data_tbl[5], ",", 2);
806 if (strlen(group_tbl[0])) { 808 if (strlen(group_tbl[0])) {
808 group = g_strdup(group_tbl[0]); 810 group = g_strdup(group_tbl[0]);
809 } 811 }
810 g_strfreev(group_tbl); 812 g_strfreev(group_tbl);
811 } 813 }
812 /* Add Buddy to our userlist */ 814 /* Add Buddy to our userlist */
813 add_buddy(gc->account, group, name, strlen(show) ? show : name); 815 if (!(g = gaim_find_group(group)))
816 g = gaim_group_new(group);
817 b = gaim_buddy_new(gc->account, name, strlen(show) ? show : NULL);
818 gaim_blist_add_buddy(b,g,NULL);
814 gaim_blist_save(); 819 gaim_blist_save();
815 g_free(group); 820 g_free(group);
816 } 821 }
817 g_free(show); 822 g_free(show);
818 g_strfreev(data_tbl); 823 g_strfreev(data_tbl);
1241 g_free(srch); 1246 g_free(srch);
1242 return; 1247 return;
1243 } 1248 }
1244 } 1249 }
1245 1250
1246 static char **agg_list_icon(int uc) 1251 static const char *agg_list_icon(struct gaim_account *a, struct buddy *b)
1247 { 1252 {
1253 return "gadu-gadu";
1254 }
1255 #if 0
1248 guint status; 1256 guint status;
1249 if (uc == UC_UNAVAILABLE) 1257 if (uc == UC_UNAVAILABLE)
1250 return (char **)gg_sunred_xpm; 1258 return (char **)gg_sunred_xpm;
1251 status = uc >> 5; 1259 status = uc >> 5;
1252 /* Drop all masks */ 1260 /* Drop all masks */
1257 return (char **)gg_suncloud_xpm; 1265 return (char **)gg_suncloud_xpm;
1258 if (status == GG_STATUS_INVISIBLE) 1266 if (status == GG_STATUS_INVISIBLE)
1259 return (char **)gg_sunwhitered_xpm; 1267 return (char **)gg_sunwhitered_xpm;
1260 return (char **)gg_sunyellow_xpm; 1268 return (char **)gg_sunyellow_xpm;
1261 } 1269 }
1270 #endif
1262 1271
1263 static void agg_set_permit_deny_dummy(struct gaim_connection *gc) 1272 static void agg_set_permit_deny_dummy(struct gaim_connection *gc)
1264 { 1273 {
1265 /* It's implemented on client side because GG server doesn't support this */ 1274 /* It's implemented on client side because GG server doesn't support this */
1266 } 1275 }