Commit c6564fc3b322271ad8a2e27f946133fa8983fe3b

Authored by Perry Werneck
1 parent 8c1f27a1

Updating print actions.

Fixing warnings.
src/core/actions/table.c
... ... @@ -641,7 +641,7 @@
641 641 .keys = "Print",
642 642 .icon = "document-print",
643 643 .label = N_("Print"),
644   - .summary = N_("Send to print"),
  644 + .summary = N_("Send to printer"),
645 645 .description = N_("If the terminal has selected area print it, if not, print all contents"),
646 646 .activate = lib3270_print,
647 647  
... ... @@ -654,8 +654,8 @@
654 654 .type = LIB3270_ACTION_TYPE_PRINTER,
655 655  
656 656 .keys = NULL,
657   - .icon = NULL,
658   - .label = NULL,
  657 + .icon = "document-print",
  658 + .label = N_("Print screen"),
659 659 .summary = N_("Print screen contents"),
660 660 .activate = lib3270_print_all,
661 661  
... ... @@ -668,8 +668,8 @@
668 668 .type = LIB3270_ACTION_TYPE_PRINTER,
669 669  
670 670 .keys = NULL,
671   - .icon = NULL,
672   - .label = NULL,
  671 + .icon = "document-print",
  672 + .label = N_("Print selection"),
673 673 .summary = N_( "Print selected area" ),
674 674 .activate = lib3270_print_selected,
675 675  
... ... @@ -682,8 +682,8 @@
682 682 .type = LIB3270_ACTION_TYPE_PRINTER,
683 683  
684 684 .keys = NULL,
685   - .icon = NULL,
686   - .label = NULL,
  685 + .icon = "document-print",
  686 + .label = N_("Print copy"),
687 687 .summary = N_("Print copy (if available)"),
688 688 .activate = lib3270_print_copy,
689 689  
... ...
src/core/connect.c
... ... @@ -70,7 +70,7 @@
70 70  
71 71 #endif // HAVE_LIBSSL
72 72  
73   - int lib3270_allow_reconnect(H3270 *hSession)
  73 + int lib3270_allow_reconnect(const H3270 *hSession)
74 74 {
75 75 //
76 76 // Can't reconnect if already reconnecting *OR* there's an open popup
... ...
src/include/lib3270.h
... ... @@ -636,7 +636,7 @@
636 636 * @return zero if reconnect is unavailable (sets errno), non zero if available.
637 637 *
638 638 */
639   - LIB3270_EXPORT int lib3270_allow_reconnect(H3270 *hSession);
  639 + LIB3270_EXPORT int lib3270_allow_reconnect(const H3270 *hSession);
640 640  
641 641 /**
642 642 * @brief Reconnect to host.
... ...