From: Mark D. <the...@us...> - 2006-01-24 00:56:23
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27471 Modified Files: gtkmain.c Log Message: Implement gaim -n correctly Index: gtkmain.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkmain.c,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -p -r1.66 -r1.67 --- gtkmain.c 23 Jan 2006 06:54:29 -0000 1.66 +++ gtkmain.c 24 Jan 2006 00:56:13 -0000 1.67 @@ -719,11 +719,8 @@ int main(int argc, char *argv[]) { /* 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); + saved_status = gaim_savedstatus_get_current(); + gaim_savedstatus_set_type(saved_status, GAIM_STATUS_OFFLINE); gaim_savedstatus_activate(saved_status); } else |