Commit c6564fc3b322271ad8a2e27f946133fa8983fe3b
1 parent
8c1f27a1
Exists in
master
and in
3 other branches
Updating print actions.
Fixing warnings.
Showing
3 changed files
with
9 additions
and
9 deletions
Show diff stats
src/core/actions/table.c
@@ -641,7 +641,7 @@ | @@ -641,7 +641,7 @@ | ||
641 | .keys = "Print", | 641 | .keys = "Print", |
642 | .icon = "document-print", | 642 | .icon = "document-print", |
643 | .label = N_("Print"), | 643 | .label = N_("Print"), |
644 | - .summary = N_("Send to print"), | 644 | + .summary = N_("Send to printer"), |
645 | .description = N_("If the terminal has selected area print it, if not, print all contents"), | 645 | .description = N_("If the terminal has selected area print it, if not, print all contents"), |
646 | .activate = lib3270_print, | 646 | .activate = lib3270_print, |
647 | 647 | ||
@@ -654,8 +654,8 @@ | @@ -654,8 +654,8 @@ | ||
654 | .type = LIB3270_ACTION_TYPE_PRINTER, | 654 | .type = LIB3270_ACTION_TYPE_PRINTER, |
655 | 655 | ||
656 | .keys = NULL, | 656 | .keys = NULL, |
657 | - .icon = NULL, | ||
658 | - .label = NULL, | 657 | + .icon = "document-print", |
658 | + .label = N_("Print screen"), | ||
659 | .summary = N_("Print screen contents"), | 659 | .summary = N_("Print screen contents"), |
660 | .activate = lib3270_print_all, | 660 | .activate = lib3270_print_all, |
661 | 661 | ||
@@ -668,8 +668,8 @@ | @@ -668,8 +668,8 @@ | ||
668 | .type = LIB3270_ACTION_TYPE_PRINTER, | 668 | .type = LIB3270_ACTION_TYPE_PRINTER, |
669 | 669 | ||
670 | .keys = NULL, | 670 | .keys = NULL, |
671 | - .icon = NULL, | ||
672 | - .label = NULL, | 671 | + .icon = "document-print", |
672 | + .label = N_("Print selection"), | ||
673 | .summary = N_( "Print selected area" ), | 673 | .summary = N_( "Print selected area" ), |
674 | .activate = lib3270_print_selected, | 674 | .activate = lib3270_print_selected, |
675 | 675 | ||
@@ -682,8 +682,8 @@ | @@ -682,8 +682,8 @@ | ||
682 | .type = LIB3270_ACTION_TYPE_PRINTER, | 682 | .type = LIB3270_ACTION_TYPE_PRINTER, |
683 | 683 | ||
684 | .keys = NULL, | 684 | .keys = NULL, |
685 | - .icon = NULL, | ||
686 | - .label = NULL, | 685 | + .icon = "document-print", |
686 | + .label = N_("Print copy"), | ||
687 | .summary = N_("Print copy (if available)"), | 687 | .summary = N_("Print copy (if available)"), |
688 | .activate = lib3270_print_copy, | 688 | .activate = lib3270_print_copy, |
689 | 689 |
src/core/connect.c
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | 70 | ||
71 | #endif // HAVE_LIBSSL | 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 | // Can't reconnect if already reconnecting *OR* there's an open popup | 76 | // Can't reconnect if already reconnecting *OR* there's an open popup |
src/include/lib3270.h
@@ -636,7 +636,7 @@ | @@ -636,7 +636,7 @@ | ||
636 | * @return zero if reconnect is unavailable (sets errno), non zero if available. | 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 | * @brief Reconnect to host. | 642 | * @brief Reconnect to host. |