comparison src/savedstatuses.c @ 11806:7584d802f0ac

[gaim-migrate @ 14097] 1. Improve "gaim -n" Using this now sets your current status to "Offline." This isn't shown in the gtkstatusbox yet. 2. Change gtkstatusbox to use gaim_savedstatus_activate() instead of having duplicate code. 3. Change gaim_savedstatus_activate() to only attempt to set the "message" attribute of a status when the status type supports the attribute. I think this'll get rid of some warnings CVS is getting good. Can you feel it? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 25 Oct 2005 04:23:07 +0000
parents a25be0e70a67
children 351f4dd75718
comparison
equal deleted inserted replaced
11805:615c2fd3d72e 11806:7584d802f0ac
529 529
530 status_type = gaim_account_get_status_type_with_primitive(account, saved_status->type); 530 status_type = gaim_account_get_status_type_with_primitive(account, saved_status->type);
531 531
532 if (status_type != NULL) 532 if (status_type != NULL)
533 { 533 {
534 if (saved_status->message != NULL) 534 if ((saved_status->message != NULL) &&
535 (gaim_status_type_get_attr(status_type, "message")))
536 {
535 gaim_account_set_status(account, gaim_status_type_get_id(status_type), 537 gaim_account_set_status(account, gaim_status_type_get_id(status_type),
536 TRUE, "message", saved_status->message, NULL); 538 TRUE, "message", saved_status->message, NULL);
539 }
537 else 540 else
541 {
538 gaim_account_set_status(account, gaim_status_type_get_id(status_type), 542 gaim_account_set_status(account, gaim_status_type_get_id(status_type),
539 TRUE, NULL); 543 TRUE, NULL);
544 }
540 } 545 }
541 } 546 }
542 547
543 void * 548 void *
544 gaim_savedstatuses_get_handle(void) 549 gaim_savedstatuses_get_handle(void)