comparison src/protocols/msn/error.c @ 5436:ad445074d239

[gaim-migrate @ 5818] Another big commit. Ugh. I need a very smart regexp. Core/UI split do_error_dialog(), and soon the mail dialogs! Yay! This should work without problems at all, but standard disclaimer.. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 18 May 2003 19:59:02 +0000
parents e2e53316a21d
children b7e113a59b51
comparison
equal deleted inserted replaced
5435:a2f26666de42 5436:ad445074d239
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 #include "msn.h" 22 #include "msn.h"
23 #include "error.h"
23 24
24 const char * 25 const char *
25 msn_error_get_text(unsigned int type) 26 msn_error_get_text(unsigned int type)
26 { 27 {
27 static char msg[MSN_BUF_LEN]; 28 static char msg[MSN_BUF_LEN];
168 169
169 return msg; 170 return msg;
170 } 171 }
171 172
172 void 173 void
173 msn_error_handle(unsigned int type) 174 msn_error_handle(MsnSession *session, unsigned int type)
174 { 175 {
175 const char *text; 176 const char *text;
176 177
177 text = msn_error_get_text(type); 178 text = msn_error_get_text(type);
178 179
179 do_error_dialog(text, NULL, GAIM_ERROR); 180 gaim_notify_error(session->account->gc, NULL, text, NULL);
180 } 181 }