comparison src/dialogs.c @ 391:be408b41c172

[gaim-migrate @ 401] Plugins got updated. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 12 Jun 2000 11:30:05 +0000
parents fd3cc0a28d5d
children 7c74e2f579b5
comparison
equal deleted inserted replaced
390:0890c6250e7e 391:be408b41c172
307 } 307 }
308 308
309 g_list_free(dialogwindows); 309 g_list_free(dialogwindows);
310 dialogwindows = NULL; 310 dialogwindows = NULL;
311 311
312 do_im_back(NULL, NULL); 312 if (awaymessage)
313 do_im_back(NULL, NULL);
313 314
314 if (imdialog) { 315 if (imdialog) {
315 destroy_dialog(NULL, imdialog); 316 destroy_dialog(NULL, imdialog);
316 imdialog = NULL; 317 imdialog = NULL;
317 } 318 }
448 gtk_widget_show(d); 449 gtk_widget_show(d);
449 } 450 }
450 451
451 452
452 453
453 void show_error_dialog(char *c) 454 void show_error_dialog(char *d)
454 { 455 {
455 456
456 int no = atoi(c); 457 int no = atoi(d);
457 char *w = strtok(NULL, ":"); 458 char *w = strtok(NULL, ":");
458 char buf[256]; 459 char buf[256];
459 char buf2[32]; 460 char buf2[32];
460 461
462 #ifdef GAIM_PLUGINS
463 GList *c = callbacks;
464 struct gaim_callback *g;
465 void (*function)(int, void *);
466 while (c) {
467 g = (struct gaim_callback *)c->data;
468 if (g->event == event_error && g->function != NULL) {
469 function = g->function;
470 (*function)(no, g->data);
471 }
472 c = c->next;
473 }
474 #endif
475
461 476
462 switch(no) { 477 switch(no) {
463 case 69: 478 case 69:
464 g_snprintf(buf, sizeof(buf), _("Unable to write file %s."), w); 479 g_snprintf(buf, sizeof(buf), _("Unable to write file %s."), w);
465 break; 480 break;