From c6564fc3b322271ad8a2e27f946133fa8983fe3b Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 18 Dec 2019 16:12:46 -0300 Subject: [PATCH] Updating print actions. Fixing warnings. --- src/core/actions/table.c | 14 +++++++------- src/core/connect.c | 2 +- src/include/lib3270.h | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/actions/table.c b/src/core/actions/table.c index c272efe..43600d5 100644 --- a/src/core/actions/table.c +++ b/src/core/actions/table.c @@ -641,7 +641,7 @@ .keys = "Print", .icon = "document-print", .label = N_("Print"), - .summary = N_("Send to print"), + .summary = N_("Send to printer"), .description = N_("If the terminal has selected area print it, if not, print all contents"), .activate = lib3270_print, @@ -654,8 +654,8 @@ .type = LIB3270_ACTION_TYPE_PRINTER, .keys = NULL, - .icon = NULL, - .label = NULL, + .icon = "document-print", + .label = N_("Print screen"), .summary = N_("Print screen contents"), .activate = lib3270_print_all, @@ -668,8 +668,8 @@ .type = LIB3270_ACTION_TYPE_PRINTER, .keys = NULL, - .icon = NULL, - .label = NULL, + .icon = "document-print", + .label = N_("Print selection"), .summary = N_( "Print selected area" ), .activate = lib3270_print_selected, @@ -682,8 +682,8 @@ .type = LIB3270_ACTION_TYPE_PRINTER, .keys = NULL, - .icon = NULL, - .label = NULL, + .icon = "document-print", + .label = N_("Print copy"), .summary = N_("Print copy (if available)"), .activate = lib3270_print_copy, diff --git a/src/core/connect.c b/src/core/connect.c index 69d38e5..00e8c2f 100644 --- a/src/core/connect.c +++ b/src/core/connect.c @@ -70,7 +70,7 @@ #endif // HAVE_LIBSSL - int lib3270_allow_reconnect(H3270 *hSession) + int lib3270_allow_reconnect(const H3270 *hSession) { // // Can't reconnect if already reconnecting *OR* there's an open popup diff --git a/src/include/lib3270.h b/src/include/lib3270.h index e1543ad..8ca5728 100644 --- a/src/include/lib3270.h +++ b/src/include/lib3270.h @@ -636,7 +636,7 @@ * @return zero if reconnect is unavailable (sets errno), non zero if available. * */ - LIB3270_EXPORT int lib3270_allow_reconnect(H3270 *hSession); + LIB3270_EXPORT int lib3270_allow_reconnect(const H3270 *hSession); /** * @brief Reconnect to host. -- libgit2 0.21.2