comparison 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
comparison
equal deleted inserted replaced
11805:615c2fd3d72e 11806:7584d802f0ac
667 g_free(opt_login_arg); 667 g_free(opt_login_arg);
668 opt_login_arg = NULL; 668 opt_login_arg = NULL;
669 } 669 }
670 } 670 }
671 671
672 if (!opt_nologin) 672 if (opt_nologin)
673 {
674 /* Set all accounts to "offline" */
675 GaimSavedStatus *saved_status;
676 saved_status = gaim_savedstatus_find(_("Default"));
677 if (saved_status == NULL)
678 saved_status = gaim_savedstatus_new(_("Default"), GAIM_STATUS_OFFLINE);
679 else
680 gaim_savedstatus_set_type(saved_status, GAIM_STATUS_OFFLINE);
681 gaim_prefs_set_string("/core/status/current", _("Default"));
682 gaim_savedstatus_activate(saved_status);
683 }
684 else
673 { 685 {
674 /* Everything is good to go--sign on already */ 686 /* Everything is good to go--sign on already */
675 gaim_accounts_restore_previous_statuses(); 687 gaim_accounts_restore_previous_statuses();
676 } 688 }
677 689