src/buddy.c

changeset 121
26bd3cceac73
parent 120
26d38d18c34a
child 133
418de720c20d
equal deleted inserted replaced
120:26d38d18c34a 121:26bd3cceac73
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);

mercurial