Mercurial > pidgin.yaz
comparison src/buddy.c @ 121:3571b593f423
[gaim-migrate @ 131]
If buddy signs off, then signs on again before they get erased, it wouldn't
alert properly. Now it does.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 15 Apr 2000 23:52:33 +0000 |
parents | 991d5f0c6c90 |
children | e277d5f0c1dd |
comparison
equal
deleted
inserted
replaced
120:991d5f0c6c90 | 121:3571b593f423 |
---|---|
1384 g_free(sotime); | 1384 g_free(sotime); |
1385 g_free(itime); | 1385 g_free(itime); |
1386 | 1386 |
1387 | 1387 |
1388 | 1388 |
1389 if (!GTK_WIDGET_VISIBLE(b->item)) { | 1389 /* this check should also depend on whether they left, |
1390 * and signed on again before they got erased */ | |
1391 if (!GTK_WIDGET_VISIBLE(b->item) || b->present == 1) { | |
1390 #ifdef GAIM_PLUGINS | 1392 #ifdef GAIM_PLUGINS |
1391 GList *c = callbacks; | 1393 GList *c = callbacks; |
1392 struct gaim_callback *g; | 1394 struct gaim_callback *g; |
1393 void (*function)(char *, void *); | 1395 void (*function)(char *, void *); |
1394 while (c) { | 1396 while (c) { |
1401 c = c->next; | 1403 c = c->next; |
1402 } | 1404 } |
1403 #endif | 1405 #endif |
1404 | 1406 |
1405 play_sound(BUDDY_ARRIVE); | 1407 play_sound(BUDDY_ARRIVE); |
1408 b->present = 2; | |
1406 | 1409 |
1407 who = g_malloc(sizeof(b->name) + 10); | 1410 who = g_malloc(sizeof(b->name) + 10); |
1408 strcpy(who, b->name); | 1411 strcpy(who, b->name); |
1409 gtk_label_set(GTK_LABEL(b->label), who); | 1412 gtk_label_set(GTK_LABEL(b->label), who); |
1410 g_free(who); | 1413 g_free(who); |