Mercurial > pidgin
comparison src/protocols/msn/notification.c @ 5326:9737d5ce9dcd
[gaim-migrate @ 5699]
The progress bar on connect no longer jumps back, and it now displays
"Retrieving buddy list," as requested by somebody (I forgot the name!) This
looks a little nicer.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Wed, 07 May 2003 08:42:47 +0000 |
| parents | 29754a7d94e5 |
| children | b716ffc25d2d |
comparison
equal
deleted
inserted
replaced
| 5325:141404465d38 | 5326:9737d5ce9dcd |
|---|---|
| 179 signoff(gc); | 179 signoff(gc); |
| 180 | 180 |
| 181 return FALSE; | 181 return FALSE; |
| 182 } | 182 } |
| 183 | 183 |
| 184 set_login_progress(gc, 3, _("Requesting to send password")); | 184 set_login_progress(gc, 4, _("Requesting to send password")); |
| 185 | 185 |
| 186 return TRUE; | 186 return TRUE; |
| 187 } | 187 } |
| 188 | 188 |
| 189 static gboolean | 189 static gboolean |
| 190 __usr_cmd(MsnServConn *servconn, const char *command, const char **params, | 190 __usr_cmd(MsnServConn *servconn, const char *command, const char **params, |
| 191 size_t param_count) | 191 size_t param_count) |
| 192 { | 192 { |
| 193 struct gaim_connection *gc = servconn->session->account->gc; | 193 MsnSession *session = servconn->session; |
| 194 struct gaim_connection *gc = session->account->gc; | |
| 194 char outparams[MSN_BUF_LEN]; | 195 char outparams[MSN_BUF_LEN]; |
| 195 | 196 |
| 196 /* We're either getting the challenge or the OK. Let's find out. */ | 197 /* We're either getting the challenge or the OK. Let's find out. */ |
| 197 if (!g_ascii_strcasecmp(params[1], "OK")) { | 198 if (!g_ascii_strcasecmp(params[1], "OK")) { |
| 198 /* OK */ | 199 /* OK */ |
| 201 hide_login_progress(gc, _("Unable to write")); | 202 hide_login_progress(gc, _("Unable to write")); |
| 202 signoff(gc); | 203 signoff(gc); |
| 203 | 204 |
| 204 return FALSE; | 205 return FALSE; |
| 205 } | 206 } |
| 207 | |
| 208 set_login_progress(session->account->gc, 4, _("Retrieving buddy list")); | |
| 206 } | 209 } |
| 207 else { | 210 else { |
| 208 /* Challenge */ | 211 /* Challenge */ |
| 209 const char *challenge = params[3]; | 212 const char *challenge = params[3]; |
| 210 char buf[MSN_BUF_LEN]; | 213 char buf[MSN_BUF_LEN]; |
| 1066 hide_login_progress(gc, _("Unable to write to server")); | 1069 hide_login_progress(gc, _("Unable to write to server")); |
| 1067 signoff(gc); | 1070 signoff(gc); |
| 1068 return FALSE; | 1071 return FALSE; |
| 1069 } | 1072 } |
| 1070 | 1073 |
| 1071 set_login_progress(session->account->gc, 2, _("Syncing with server")); | 1074 set_login_progress(session->account->gc, 4, _("Syncing with server")); |
| 1072 | 1075 |
| 1073 return TRUE; | 1076 return TRUE; |
| 1074 } | 1077 } |
| 1075 | 1078 |
| 1076 static void | 1079 static void |
