comparison src/protocols/oscar/oscar.c @ 4960:42bd8ab53234

[gaim-migrate @ 5294] I "made" some status icons for ICQ away states. They suck. Someone with some skills of an artist please to try improve them. Or even just whichever one you hate the most. Really, new icons are welcome. Email them to mark izat kingant dizot net and we'll put them under consideration. I actually think the DND and free for chat icons look pretty nice. The NA on the NA icon is not readable enough. The invisible is plain and not very meaningful. The occupied is not easily discernable and stupid. I also removed the option to have buddy list tabs at the top or bottom of the buddy list. And I took out my April Fools joke. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 02 Apr 2003 06:32:54 +0000
parents 6ae40a9c5514
children e5cebfe1bb0e
comparison
equal deleted inserted replaced
4959:6ae40a9c5514 4960:42bd8ab53234
225 time_t ico_me_time; 225 time_t ico_me_time;
226 gboolean ico_informed; 226 gboolean ico_informed;
227 227
228 fu16_t iconcsumlen; 228 fu16_t iconcsumlen;
229 fu8_t iconcsum[30]; 229 fu8_t iconcsum[30];
230
231 double shoesize;
232 }; 230 };
233 231
234 struct name_data { 232 struct name_data {
235 struct gaim_connection *gc; 233 struct gaim_connection *gc;
236 gchar *name; 234 gchar *name;
1831 } 1829 }
1832 free(saved_b16); 1830 free(saved_b16);
1833 free(b16); 1831 free(b16);
1834 } 1832 }
1835 1833
1836 bi->shoesize = (rand()%5)+7;
1837 if (rand()%2) bi->shoesize+=0.5;
1838
1839 serv_got_update(gc, info->sn, 1, info->warnlevel/10, signon, time_idle, type); 1834 serv_got_update(gc, info->sn, 1, info->warnlevel/10, signon, time_idle, type);
1840 1835
1841 return 1; 1836 return 1;
1842 } 1837 }
1843 1838
3080 yay = g_strconcat(tmp, _("\n<b>Status:</b> "), status, NULL); 3075 yay = g_strconcat(tmp, _("\n<b>Status:</b> "), status, NULL);
3081 g_free(tmp); 3076 g_free(tmp);
3082 g_free(status); 3077 g_free(status);
3083 } 3078 }
3084 3079
3085 {
3086 char *tmp;
3087 tmp = yay;
3088 yay = g_strdup_printf("%s\n<b>Shoe Size:</b> %2.1f", tmp, bi->shoesize);
3089 g_free(tmp);
3090 }
3091
3092 return yay; 3080 return yay;
3093 } else { 3081 } else {
3094 return NULL; 3082 return NULL;
3095 } 3083 }
3096 } 3084 }
5206 5194
5207 if (b->present == 0) 5195 if (b->present == 0)
5208 emblems[i++] = "offline"; 5196 emblems[i++] = "offline";
5209 5197
5210 if (b->name && (b->uc & 0xffff0000) && isdigit(b->name[0])) { 5198 if (b->name && (b->uc & 0xffff0000) && isdigit(b->name[0])) {
5211 /* int uc = b->uc >> 16; 5199 int uc = b->uc >> 16;
5212 if (uc & AIM_ICQ_STATE_INVISIBLE) 5200 if (uc & AIM_ICQ_STATE_INVISIBLE)
5213 emblems[i++] = "icq_invisible"; 5201 emblems[i++] = "invisible";
5214 else if (uc & AIM_ICQ_STATE_CHAT) 5202 else if (uc & AIM_ICQ_STATE_CHAT)
5215 emblems[i++] = "icq_chat"; 5203 emblems[i++] = "freeforchat";
5216 else if (uc & AIM_ICQ_STATE_DND) 5204 else if (uc & AIM_ICQ_STATE_DND)
5217 emblems[i++] = "icq_dnd"; 5205 emblems[i++] = "dnd";
5218 else if (uc & AIM_ICQ_STATE_OUT) 5206 else if (uc & AIM_ICQ_STATE_OUT)
5219 emblems[i++] = "icq_out"; 5207 emblems[i++] = "na";
5220 else if (uc & AIM_ICQ_STATE_BUSY) 5208 else if (uc & AIM_ICQ_STATE_BUSY)
5221 emblems[i++] = "icq_busy"; 5209 emblems[i++] = "occupied";
5222 else if (uc & AIM_ICQ_STATE_AWAY) 5210 else if (uc & AIM_ICQ_STATE_AWAY)
5223 emblems[i++] = "icq_away";
5224 */
5225 if (b->uc & UC_UNAVAILABLE)
5226 emblems[i++] = "away"; 5211 emblems[i++] = "away";
5227 } else { 5212 } else {
5228 if (b->uc & UC_UNAVAILABLE) 5213 if (b->uc & UC_UNAVAILABLE)
5229 emblems[i++] = "away"; 5214 emblems[i++] = "away";
5230 } 5215 }