diff --git a/locale/pt_BR.po b/locale/pt_BR.po index 1d1d5fc..7058c08 100644 --- a/locale/pt_BR.po +++ b/locale/pt_BR.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-11-21 06:42-0300\n" -"PO-Revision-Date: 2021-11-22 19:59-0300\n" +"PO-Revision-Date: 2021-11-22 22:07-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Brazilian Portuguese \n" "Language: pt_BR\n" @@ -420,8 +420,8 @@ msgid "Edit clipboard settings" msgstr "Altera configurações da area de transferência" #: src/terminal/actions/table.c:337 -msgid "Edit host settings" -msgstr "Alterar configuração do servidor" +msgid "Edit host and terminal emulation settings" +msgstr "Alterar configurações do servidor e emulação" #: src/terminal/actions/table.c:328 msgid "Edit keyboard accelerators" @@ -562,7 +562,11 @@ msgstr "Opções HTML" msgid "Host" msgstr "Servidor" -#: src/terminal/actions/table.c:336 src/dialogs/settings/host.c:580 +#: src/terminal/actions/table.c:336 +msgid "Host and emulation settings" +msgstr "Configuração de servidor e emulação" + +#: src/dialogs/settings/host.c:580 msgid "Host settings" msgstr "Configurações do servidor" @@ -626,7 +630,7 @@ msgstr "Intensificado/Protegido" msgid "Intensified/Unprotected" msgstr "Intensificado/Desprotegido" -#: src/terminal/callbacks.c:484 +#: src/terminal/callbacks.c:489 #, c-format msgid "" "Invalid callback table, the release %s of lib%s can't be used (expecting " @@ -1564,7 +1568,7 @@ msgstr "Incapaz de colar dados formatados." msgid "Undefined" msgstr "Indefinido" -#: src/terminal/callbacks.c:493 +#: src/terminal/callbacks.c:498 #, c-format msgid "Unexpected callback table, the release %s of lib%s is invalid" msgstr "Tabela de callbacks inesperada, a revisão %s da lib%s é inválida" diff --git a/src/terminal/actions/table.c b/src/terminal/actions/table.c index a6a489f..00a729d 100644 --- a/src/terminal/actions/table.c +++ b/src/terminal/actions/table.c @@ -333,8 +333,8 @@ .group = LIB3270_ACTION_GROUP_OFFLINE, .name = "dialog-host", .icon = "network-server", - .label = N_("Host settings"), - .summary = N_("Edit host settings"), + .label = N_("Host and emulation settings"), + .summary = N_("Edit host and terminal emulation settings"), .activate = fire_host_dialog }, diff --git a/src/terminal/callbacks.c b/src/terminal/callbacks.c index f4907a6..65275ef 100644 --- a/src/terminal/callbacks.c +++ b/src/terminal/callbacks.c @@ -434,7 +434,7 @@ static int load(H3270 *session, const char *filename) debug("Emitting '%s'", text); - guint response = (guint) -1; + guint response = 0; v3270_signal_emit( terminal, V3270_SIGNAL_OPEN_URL, @@ -442,14 +442,19 @@ static int load(H3270 *session, const char *filename) &response ); - if(response == (guint) -1) { + debug("Response was: %d", (int) response); + + if(response == 0) { // No one has changed the response, take default action. - gtk_show_uri_on_window( + g_message("Opening '%s'",text); + if(gtk_show_uri_on_window( GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(terminal))), text, GDK_CURRENT_TIME, NULL - ); + )) { + v3270_unselect(GTK_WIDGET(terminal)); + } } } -- libgit2 0.21.2