Mercurial > pidgin
diff src/gtkmain.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 | f48e2acaa5d2 |
children | 8913546c6a4e |
line wrap: on
line diff
--- a/src/gtkmain.c Tue Oct 25 01:00:28 2005 +0000 +++ b/src/gtkmain.c Tue Oct 25 04:23:07 2005 +0000 @@ -669,7 +669,19 @@ } } - if (!opt_nologin) + if (opt_nologin) + { + /* Set all accounts to "offline" */ + GaimSavedStatus *saved_status; + saved_status = gaim_savedstatus_find(_("Default")); + if (saved_status == NULL) + saved_status = gaim_savedstatus_new(_("Default"), GAIM_STATUS_OFFLINE); + else + gaim_savedstatus_set_type(saved_status, GAIM_STATUS_OFFLINE); + gaim_prefs_set_string("/core/status/current", _("Default")); + gaim_savedstatus_activate(saved_status); + } + else { /* Everything is good to go--sign on already */ gaim_accounts_restore_previous_statuses();