comparison src/gtk/misc-gtk.c @ 677:8990a8a26ccf

2005-1-24 Brian Masney <masneyb@gftp.org> * lib/protocols.c lib/rfc959.c src/gtk/dnd.c src/gtk/gftp-gtk.c src/gtk/gtkui.c src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/transfer.c src/gtk/view-dialog.c src/uicommon/gftpui.c - make sure the logging level gftp_logging_error is used for all error messages
author masneyb
date Tue, 25 Jan 2005 02:34:19 +0000
parents b8faf63b2e9b
children 49cfbe02926b
comparison
equal deleted inserted replaced
676:72a6de68d9c8 677:8990a8a26ccf
506 506
507 owdata = wdata == &window1 ? &window2 : &window1; 507 owdata = wdata == &window1 ? &window2 : &window1;
508 508
509 if (wdata->request->stopable) 509 if (wdata->request->stopable)
510 { 510 {
511 ftp_log (gftp_logging_misc, NULL, 511 ftp_log (gftp_logging_error, NULL,
512 _("%s: Please hit the stop button first to do anything else\n"), 512 _("%s: Please hit the stop button first to do anything else\n"),
513 name); 513 name);
514 return (0); 514 return (0);
515 } 515 }
516 516
517 if (check_other_stop && owdata->request->stopable) 517 if (check_other_stop && owdata->request->stopable)
518 { 518 {
519 ftp_log (gftp_logging_misc, NULL, 519 ftp_log (gftp_logging_error, NULL,
520 _("%s: Please hit the stop button first to do anything else\n"), 520 _("%s: Please hit the stop button first to do anything else\n"),
521 name); 521 name);
522 return (0); 522 return (0);
523 } 523 }
524 524
525 if (!GFTP_IS_CONNECTED (wdata->request)) 525 if (!GFTP_IS_CONNECTED (wdata->request))
526 { 526 {
527 ftp_log (gftp_logging_misc, NULL, 527 ftp_log (gftp_logging_error, NULL,
528 _("%s: Not connected to a remote site\n"), name); 528 _("%s: Not connected to a remote site\n"), name);
529 return (0); 529 return (0);
530 } 530 }
531 531
532 if (!func) 532 if (!func)
533 { 533 {
534 ftp_log (gftp_logging_misc, NULL, 534 ftp_log (gftp_logging_error, NULL,
535 _("%s: This feature is not available using this protocol\n"), 535 _("%s: This feature is not available using this protocol\n"),
536 name); 536 name);
537 return (0); 537 return (0);
538 } 538 }
539 539
540 if (only_one && !IS_ONE_SELECTED (wdata)) 540 if (only_one && !IS_ONE_SELECTED (wdata))
541 { 541 {
542 ftp_log (gftp_logging_misc, NULL, 542 ftp_log (gftp_logging_error, NULL,
543 _("%s: You must only have one item selected\n"), name); 543 _("%s: You must only have one item selected\n"), name);
544 return (0); 544 return (0);
545 } 545 }
546 546
547 if (at_least_one && !only_one && IS_NONE_SELECTED (wdata)) 547 if (at_least_one && !only_one && IS_NONE_SELECTED (wdata))
548 { 548 {
549 ftp_log (gftp_logging_misc, NULL, 549 ftp_log (gftp_logging_error, NULL,
550 _("%s: You must have at least one item selected\n"), name); 550 _("%s: You must have at least one item selected\n"), name);
551 return (0); 551 return (0);
552 } 552 }
553 return (1); 553 return (1);
554 } 554 }