Mercurial > pidgin.yaz
comparison src/multi.c @ 4890:89cb14edf8cf
[gaim-migrate @ 5220]
Moved utility function declarations into util.h and documented them.
Constificationized some vars in some functions.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 25 Mar 2003 06:26:24 +0000 |
parents | ac9ed6c5594f |
children | b6fd57ba76e8 |
comparison
equal
deleted
inserted
replaced
4889:f7150929332b | 4890:89cb14edf8cf |
---|---|
1515 g_free (meter_win); | 1515 g_free (meter_win); |
1516 meter_win = NULL; | 1516 meter_win = NULL; |
1517 } | 1517 } |
1518 } | 1518 } |
1519 | 1519 |
1520 void away_on_login(char *mesg) | |
1521 { | |
1522 GSList *awy = away_messages; | |
1523 struct away_message *a, *message = NULL; | |
1524 struct gaim_gtk_buddy_list *gtkblist; | |
1525 | |
1526 gtkblist = GAIM_GTK_BLIST(gaim_get_blist()); | |
1527 | |
1528 if (!gtkblist->window) { | |
1529 return; | |
1530 } | |
1531 | |
1532 if (mesg == NULL) { | |
1533 /* Use default message */ | |
1534 do_away_message(NULL, default_away); | |
1535 } else { | |
1536 /* Use argument */ | |
1537 while (awy) { | |
1538 a = (struct away_message *)awy->data; | |
1539 if (strcmp(a->name, mesg) == 0) { | |
1540 message = a; | |
1541 break; | |
1542 } | |
1543 awy = awy->next; | |
1544 } | |
1545 if (message == NULL) | |
1546 message = default_away; | |
1547 do_away_message(NULL, message); | |
1548 } | |
1549 return; | |
1550 } | |
1551 | |
1520 void account_online(struct gaim_connection *gc) | 1552 void account_online(struct gaim_connection *gc) |
1521 { | 1553 { |
1522 struct signon_meter *meter = find_signon_meter(gc); | 1554 struct signon_meter *meter = find_signon_meter(gc); |
1523 GList *wins; | 1555 GList *wins; |
1524 GtkTreeIter iter; | 1556 GtkTreeIter iter; |