From: Mark D. <the...@us...> - 2004-03-20 15:54:42
|
Update of /cvsroot/gaim/gaim/src/protocols/oscar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31714/src/protocols/oscar Modified Files: oscar.c Log Message: This adds a "Back" menu item to AIM. I think it disappared when I did the invisibility thing. This is ugly, but it should all change when Chip finishes his status rewrite. So he'll just want to remove the current away.h completely... Index: oscar.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/oscar.c,v retrieving revision 1.553 retrieving revision 1.554 diff -u -d -p -r1.553 -r1.554 --- oscar.c 17 Mar 2004 02:25:02 -0000 1.553 +++ oscar.c 20 Mar 2004 15:44:35 -0000 1.554 @@ -28,6 +28,7 @@ #include "account.h" #include "accountopt.h" +#include "away.h" #include "buddyicon.h" #include "conversation.h" #include "core.h" @@ -4670,6 +4671,13 @@ static void oscar_set_away_aim(GaimConne return; } /* else... */ + if (!strcmp(state, _("Back"))) { + /* If this is our only online account then globally set Gaim not-away */ + GList *gcs = gaim_connections_get_all(); + if (gcs->next == NULL) + do_im_back(NULL, NULL); + } + aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL); if (od->rights.maxawaymsglen == 0) @@ -6417,6 +6425,7 @@ static GList *oscar_away_states(GaimConn m = g_list_append(m, _("Invisible")); } else { m = g_list_append(m, GAIM_AWAY_CUSTOM); + m = g_list_append(m, _("Back")); m = g_list_append(m, _("Visible")); m = g_list_append(m, _("Invisible")); } |