Mercurial > pidgin.yaz
comparison src/gtkmain.c @ 13110:0e7f19583825
[gaim-migrate @ 15472]
Luke, this commit is for you, baby
When starting Gaim with 'gaim -n', don't modify the last used status
by making it "OFFLINE." Instead, find an already-existant transient
OFFLINE status and use that or create one if needed.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 03 Feb 2006 04:04:48 +0000 |
parents | e347b2217b1b |
children | 812e2de69c90 |
comparison
equal
deleted
inserted
replaced
13109:079f7a452e3a | 13110:0e7f19583825 |
---|---|
712 | 712 |
713 if (opt_nologin) | 713 if (opt_nologin) |
714 { | 714 { |
715 /* Set all accounts to "offline" */ | 715 /* Set all accounts to "offline" */ |
716 GaimSavedStatus *saved_status; | 716 GaimSavedStatus *saved_status; |
717 saved_status = gaim_savedstatus_get_current(); | 717 |
718 gaim_savedstatus_set_type(saved_status, GAIM_STATUS_OFFLINE); | 718 /* If we've used this type+message before, lookup the transient status */ |
719 saved_status = gaim_savedstatus_find_by_type_and_message( | |
720 GAIM_STATUS_OFFLINE, NULL); | |
721 | |
722 /* If this type+message is unique then create a new transient saved status */ | |
723 if (saved_status == NULL) | |
724 saved_status = gaim_savedstatus_new(NULL, GAIM_STATUS_OFFLINE); | |
725 | |
726 /* Set the status for each account */ | |
719 gaim_savedstatus_activate(saved_status); | 727 gaim_savedstatus_activate(saved_status); |
720 } | 728 } |
721 else | 729 else |
722 { | 730 { |
723 /* Everything is good to go--sign on already */ | 731 /* Everything is good to go--sign on already */ |