Commit 5f05be7b88d53e9f85a1f8101f34785339c2d4b2
1 parent
0a69c938
Exists in
master
and in
1 other branch
Fixing load/save popup return signals.
Showing
3 changed files
with
44 additions
and
63 deletions
Show diff stats
locale/pt_BR.po
... | ... | @@ -5,7 +5,7 @@ msgid "" |
5 | 5 | msgstr "" |
6 | 6 | "Project-Id-Version: pw3270 5.0\n" |
7 | 7 | "Report-Msgid-Bugs-To: \n" |
8 | -"POT-Creation-Date: 2020-07-22 16:02-0300\n" | |
8 | +"POT-Creation-Date: 2020-07-27 18:34-0300\n" | |
9 | 9 | "PO-Revision-Date: 2020-07-23 11:06-0300\n" |
10 | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
11 | 11 | "Language-Team: Português <>\n" |
... | ... | @@ -202,7 +202,7 @@ msgstr "Erro ao converter valor do cgcsid" |
202 | 202 | msgid "Can't parse character value" |
203 | 203 | msgstr "Erro ao analisar valor de caractere" |
204 | 204 | |
205 | -#: src/selection/linux/paste.c:80 src/selection/linux/paste.c:115 | |
205 | +#: src/selection/linux/paste.c:81 src/selection/linux/paste.c:115 | |
206 | 206 | msgid "Can't paste" |
207 | 207 | msgstr "Não é possivel colar" |
208 | 208 | |
... | ... | @@ -228,9 +228,9 @@ msgstr "Não foi possível registrar manipuladores de I/O 3270" |
228 | 228 | msgid "Can't start file transfer session" |
229 | 229 | msgstr "Não foi possível iniciar transferência de arquivo" |
230 | 230 | |
231 | -#: src/terminal/callbacks.c:412 src/filetransfer/v3270ftprogress.c:433 | |
232 | -#: src/filetransfer/transfer.c:89 src/dialogs/load.c:111 | |
233 | -#: src/dialogs/save/save.c:117 src/dialogs/settings/host.c:401 | |
231 | +#: src/filetransfer/v3270ftprogress.c:433 src/filetransfer/transfer.c:89 | |
232 | +#: src/dialogs/load.c:111 src/dialogs/save/save.c:117 | |
233 | +#: src/dialogs/settings/host.c:401 | |
234 | 234 | msgid "Cancel" |
235 | 235 | msgstr "_Cancelar" |
236 | 236 | |
... | ... | @@ -302,10 +302,6 @@ msgstr "Comando a executar" |
302 | 302 | msgid "Connection" |
303 | 303 | msgstr "Conexão" |
304 | 304 | |
305 | -#: src/terminal/callbacks.c:413 | |
306 | -msgid "Continue" | |
307 | -msgstr "Continuar" | |
308 | - | |
309 | 305 | #: src/terminal/actions/table.c:64 src/terminal/actions/table.c:87 |
310 | 306 | msgid "Copy" |
311 | 307 | msgstr "Copiar" |
... | ... | @@ -339,10 +335,6 @@ msgstr "" |
339 | 335 | msgid "Creates a file with variable-length records." |
340 | 336 | msgstr "Cria arquivo com registros de tamanho variável." |
341 | 337 | |
342 | -#: src/dialogs/popups.c:78 | |
343 | -msgid "Critical Error" | |
344 | -msgstr "Erro crítico" | |
345 | - | |
346 | 338 | #: src/dialogs/settings/colors.c:180 |
347 | 339 | msgid "Cross hair cursor" |
348 | 340 | msgstr "Cursor mira" |
... | ... | @@ -409,7 +401,7 @@ msgstr "Turquesa Escuro" |
409 | 401 | msgid "Default" |
410 | 402 | msgstr "Padrão" |
411 | 403 | |
412 | -#: src/dialogs/popups.c:223 | |
404 | +#: src/dialogs/popups.c:127 | |
413 | 405 | msgid "Don't ask again" |
414 | 406 | msgstr "Não perguntar de novo" |
415 | 407 | |
... | ... | @@ -429,10 +421,6 @@ msgstr "Emulação" |
429 | 421 | msgid "Enabled" |
430 | 422 | msgstr "Habilitado" |
431 | 423 | |
432 | -#: src/dialogs/popups.c:70 | |
433 | -msgid "Error" | |
434 | -msgstr "Erro" | |
435 | - | |
436 | 424 | #: src/dialogs/print/print.c:72 |
437 | 425 | msgid "Error on print operation" |
438 | 426 | msgstr "Erro na operação de impressão" |
... | ... | @@ -584,10 +572,6 @@ msgstr "Copiar imagem" |
584 | 572 | msgid "Increase the font size" |
585 | 573 | msgstr "Aumenta o tamanho da fonte" |
586 | 574 | |
587 | -#: src/dialogs/popups.c:54 | |
588 | -msgid "Information" | |
589 | -msgstr "Informação" | |
590 | - | |
591 | 575 | #: src/terminal/actions/table.c:153 |
592 | 576 | msgid "Input current clipboard contents to screen" |
593 | 577 | msgstr "Insere conteúdo da área de transferência" |
... | ... | @@ -604,7 +588,7 @@ msgstr "Intensificado/Protegido" |
604 | 588 | msgid "Intensified/Unprotected" |
605 | 589 | msgstr "Intensificado/Desprotegido" |
606 | 590 | |
607 | -#: src/terminal/callbacks.c:454 | |
591 | +#: src/terminal/callbacks.c:458 | |
608 | 592 | msgid "Invalid callback table, possible version mismatch in lib3270" |
609 | 593 | msgstr "" |
610 | 594 | "Tabela de callbacks inválida, possível divergência de versão na lib3270" |
... | ... | @@ -694,7 +678,7 @@ msgstr "Próxima página" |
694 | 678 | msgid "No active transfer" |
695 | 679 | msgstr "Nenhuma transferência ativa" |
696 | 680 | |
697 | -#: src/terminal/properties/get.c:203 | |
681 | +#: src/terminal/properties/get.c:205 | |
698 | 682 | msgid "No host defined" |
699 | 683 | msgstr "Nenhum servidor definido" |
700 | 684 | |
... | ... | @@ -730,7 +714,7 @@ msgstr "Normal/Protegido" |
730 | 714 | msgid "Normal/Unprotected" |
731 | 715 | msgstr "Normal/Desprotegido" |
732 | 716 | |
733 | -#: src/selection/linux/paste.c:76 | |
717 | +#: src/selection/linux/paste.c:77 | |
734 | 718 | msgid "Not the same terminal type" |
735 | 719 | msgstr "O tipo de terminal é diferente" |
736 | 720 | |
... | ... | @@ -1101,10 +1085,6 @@ msgstr "" |
1101 | 1085 | msgid "Secondary space" |
1102 | 1086 | msgstr "Secondary space" |
1103 | 1087 | |
1104 | -#: src/dialogs/popups.c:86 | |
1105 | -msgid "Security alert" | |
1106 | -msgstr "Alerta de segurança" | |
1107 | - | |
1108 | 1088 | #: src/filetransfer/v3270ft.c:303 src/filetransfer/settings.c:209 |
1109 | 1089 | #: src/dialogs/save/save.c:98 src/dialogs/save/save.c:118 |
1110 | 1090 | #: src/dialogs/settings/host.c:402 |
... | ... | @@ -1333,11 +1313,6 @@ msgstr "" |
1333 | 1313 | "Tabela de callbacks para transferência de arquivos inválida, possível " |
1334 | 1314 | "divergência de versão na lib3270" |
1335 | 1315 | |
1336 | -#: src/terminal/callbacks.c:407 | |
1337 | -#, c-format | |
1338 | -msgid "The error code was %d" | |
1339 | -msgstr "O código de erro foi %d" | |
1340 | - | |
1341 | 1316 | #: src/dialogs/save/save.c:425 |
1342 | 1317 | #, c-format |
1343 | 1318 | msgid "The file \"%s\" already exists. Replace it?" |
... | ... | @@ -1544,10 +1519,6 @@ msgstr "Usar espaço inseparável" |
1544 | 1519 | msgid "Variable" |
1545 | 1520 | msgstr "Variável" |
1546 | 1521 | |
1547 | -#: src/dialogs/popups.c:62 | |
1548 | -msgid "Warning" | |
1549 | -msgstr "Alerta" | |
1550 | - | |
1551 | 1522 | #: src/dialogs/tools.c:172 |
1552 | 1523 | msgid "Western Europe (ISO 8859-1)" |
1553 | 1524 | msgstr "Europa ocidental (ISO 8859-1)" |
... | ... | @@ -1737,10 +1708,9 @@ msgstr "Texto _ASCII" |
1737 | 1708 | msgid "_Apply" |
1738 | 1709 | msgstr "_Aplicar" |
1739 | 1710 | |
1740 | -#: src/selection/linux/paste.c:84 src/selection/linux/paste.c:118 | |
1741 | -#: src/dialogs/popups.c:118 src/dialogs/load.c:205 src/dialogs/load.c:224 | |
1742 | -#: src/dialogs/linux/select.c:51 src/dialogs/linux/select.c:77 | |
1743 | -#: src/dialogs/print/settingsdialog.c:410 | |
1711 | +#: src/selection/linux/paste.c:85 src/dialogs/popups.c:152 | |
1712 | +#: src/dialogs/load.c:205 src/dialogs/load.c:224 src/dialogs/linux/select.c:51 | |
1713 | +#: src/dialogs/linux/select.c:77 src/dialogs/print/settingsdialog.c:410 | |
1744 | 1714 | #: src/dialogs/print/settingsdialog.c:429 src/dialogs/save/save.c:342 |
1745 | 1715 | #: src/dialogs/save/save.c:361 src/dialogs/settings/dialog.c:231 |
1746 | 1716 | msgid "_Cancel" |
... | ... | @@ -1752,7 +1722,7 @@ msgstr "Tabela de _Caracteres" |
1752 | 1722 | |
1753 | 1723 | #: src/trace/tracewindow.c:125 src/dialogs/transfer.c:163 |
1754 | 1724 | #: src/dialogs/transfer.c:183 src/dialogs/security.c:235 |
1755 | -#: src/dialogs/popups.c:77 | |
1725 | +#: src/dialogs/popups.c:90 | |
1756 | 1726 | msgid "_Close" |
1757 | 1727 | msgstr "_Close" |
1758 | 1728 | |
... | ... | @@ -1788,8 +1758,8 @@ msgstr "Arquivo _local:" |
1788 | 1758 | msgid "_Model" |
1789 | 1759 | msgstr "_Modelo" |
1790 | 1760 | |
1791 | -#: src/dialogs/popups.c:53 src/dialogs/popups.c:61 src/dialogs/popups.c:69 | |
1792 | -#: src/dialogs/popups.c:85 | |
1761 | +#: src/dialogs/popups.c:72 src/dialogs/popups.c:78 src/dialogs/popups.c:84 | |
1762 | +#: src/dialogs/popups.c:96 | |
1793 | 1763 | msgid "_Ok" |
1794 | 1764 | msgstr "_Ok" |
1795 | 1765 | |
... | ... | @@ -1797,7 +1767,7 @@ msgstr "_Ok" |
1797 | 1767 | msgid "_Operation" |
1798 | 1768 | msgstr "_Operação:" |
1799 | 1769 | |
1800 | -#: src/selection/linux/paste.c:85 src/selection/linux/paste.c:119 | |
1770 | +#: src/selection/linux/paste.c:86 src/selection/linux/paste.c:118 | |
1801 | 1771 | msgid "_Paste as text" |
1802 | 1772 | msgstr "_Colar como texto" |
1803 | 1773 | |
... | ... | @@ -2386,12 +2356,18 @@ msgstr "Diminui o tamanho da fonte" |
2386 | 2356 | #~ msgid "Connection state" |
2387 | 2357 | #~ msgstr "Estado da conexão" |
2388 | 2358 | |
2359 | +#~ msgid "Continue" | |
2360 | +#~ msgstr "Continuar" | |
2361 | + | |
2389 | 2362 | #~ msgid "Copiar tudo" |
2390 | 2363 | #~ msgstr "Copiar tudo" |
2391 | 2364 | |
2392 | 2365 | #~ msgid "Copy as HTML" |
2393 | 2366 | #~ msgstr "Copiar como HTML" |
2394 | 2367 | |
2368 | +#~ msgid "Critical Error" | |
2369 | +#~ msgstr "Erro crítico" | |
2370 | + | |
2395 | 2371 | #, fuzzy |
2396 | 2372 | #~ msgid "Cross hair Cursor" |
2397 | 2373 | #~ msgstr "Cursor mira" |
... | ... | @@ -2529,6 +2505,9 @@ msgstr "Diminui o tamanho da fonte" |
2529 | 2505 | #~ msgid "Erase to end of line" |
2530 | 2506 | #~ msgstr "Apagar até o final da linha" |
2531 | 2507 | |
2508 | +#~ msgid "Error" | |
2509 | +#~ msgstr "Erro" | |
2510 | + | |
2532 | 2511 | #~ msgid "Error \"%s\" reading from local file (rc=%d)" |
2533 | 2512 | #~ msgstr "Erro \"%s\" lendo arquivo local (rc=%d)" |
2534 | 2513 | |
... | ... | @@ -2786,6 +2765,9 @@ msgstr "Diminui o tamanho da fonte" |
2786 | 2765 | #~ msgid "Incorrect request code: file transfer canceled" |
2787 | 2766 | #~ msgstr "Código de requisição incorreto, transferência cancelada" |
2788 | 2767 | |
2768 | +#~ msgid "Information" | |
2769 | +#~ msgstr "Informação" | |
2770 | + | |
2789 | 2771 | #~ msgid "Input method" |
2790 | 2772 | #~ msgstr "Método de entrada" |
2791 | 2773 | |
... | ... | @@ -3372,6 +3354,9 @@ msgstr "Diminui o tamanho da fonte" |
3372 | 3354 | #~ msgid "Secure connection was successful." |
3373 | 3355 | #~ msgstr "Conexão segura efetuada com sucesso." |
3374 | 3356 | |
3357 | +#~ msgid "Security alert" | |
3358 | +#~ msgstr "Alerta de segurança" | |
3359 | + | |
3375 | 3360 | #~ msgid "Security warning" |
3376 | 3361 | #~ msgstr "Alerta de segurança" |
3377 | 3362 | |
... | ... | @@ -3682,6 +3667,9 @@ msgstr "Diminui o tamanho da fonte" |
3682 | 3667 | #~ "Intervalo de tempo entre o desbloqueio de teclado pelo host e o " |
3683 | 3668 | #~ "desbloqueio real" |
3684 | 3669 | |
3670 | +#~ msgid "The error code was %d" | |
3671 | +#~ msgstr "O código de erro foi %d" | |
3672 | + | |
3685 | 3673 | #~ msgid "The height %d is less than model %d rows (%d)" |
3686 | 3674 | #~ msgstr "A altura %d é menor que o número de linhas do modelo %d (%d)" |
3687 | 3675 | |
... | ... | @@ -4025,6 +4013,9 @@ msgstr "Diminui o tamanho da fonte" |
4025 | 4013 | #~ msgid "Waiting for PUT response" |
4026 | 4014 | #~ msgstr "Aguardando resposta do pedido de upload" |
4027 | 4015 | |
4016 | +#~ msgid "Warning" | |
4017 | +#~ msgstr "Alerta" | |
4018 | + | |
4028 | 4019 | #~ msgid "Where to save the received file." |
4029 | 4020 | #~ msgstr "Onde salvar o arquivo recebido." |
4030 | 4021 | ... | ... |
src/dialogs/popups.c
... | ... | @@ -45,7 +45,7 @@ |
45 | 45 | |
46 | 46 | if(allow_disabling) { |
47 | 47 | |
48 | - GtkResponseType response = GTK_RESPONSE_DELETE_EVENT; | |
48 | + GtkResponseType response = 0; | |
49 | 49 | |
50 | 50 | v3270_signal_emit( |
51 | 51 | widget, |
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | &response |
55 | 55 | ); |
56 | 56 | |
57 | - if((response != GTK_RESPONSE_NONE) && (response != GTK_RESPONSE_DELETE_EVENT)) | |
57 | + if(response && response != GTK_RESPONSE_NONE) | |
58 | 58 | return response; |
59 | 59 | |
60 | 60 | allow_disabling = (response == GTK_RESPONSE_NONE); | ... | ... |
src/terminal/widget.c
... | ... | @@ -201,16 +201,8 @@ static void finalize(GObject *object) { |
201 | 201 | G_OBJECT_CLASS(v3270_parent_class)->finalize(object); |
202 | 202 | } |
203 | 203 | |
204 | - static GtkResponseType load_popup_response(v3270 G_GNUC_UNUSED(*widget), const gchar G_GNUC_UNUSED(*popup_name)) { | |
205 | - return GTK_RESPONSE_DELETE_EVENT; | |
206 | - } | |
207 | - | |
208 | - static gboolean save_popup_response(v3270 G_GNUC_UNUSED(*widget), const gchar G_GNUC_UNUSED(*popup_name), GtkResponseType G_GNUC_UNUSED(response)) { | |
209 | - return FALSE; | |
210 | - } | |
211 | - | |
212 | -static void v3270_class_init(v3270Class *klass) | |
213 | -{ | |
204 | + static void v3270_class_init(v3270Class *klass) | |
205 | + { | |
214 | 206 | GObjectClass * gobject_class = G_OBJECT_CLASS(klass); |
215 | 207 | GtkWidgetClass * widget_class = GTK_WIDGET_CLASS(klass); |
216 | 208 | GtkBindingSet * binding = gtk_binding_set_by_class(klass); |
... | ... | @@ -250,8 +242,6 @@ static void v3270_class_init(v3270Class *klass) |
250 | 242 | klass->activate = v3270_activate; |
251 | 243 | klass->toggle_changed = v3270_toggle_changed; |
252 | 244 | klass->message_changed = v3270_update_message; |
253 | - klass->load_popup_response = load_popup_response; | |
254 | - klass->save_popup_response = save_popup_response; | |
255 | 245 | |
256 | 246 | // Register I/O Handlers |
257 | 247 | v3270_register_io_handlers(klass); |
... | ... | @@ -479,7 +469,7 @@ static void v3270_class_init(v3270Class *klass) |
479 | 469 | g_signal_new( I_("load-popup-response"), |
480 | 470 | G_OBJECT_CLASS_TYPE (gobject_class), |
481 | 471 | G_SIGNAL_RUN_LAST, |
482 | - G_STRUCT_OFFSET (v3270Class, load_popup_response), | |
472 | + 0, | |
483 | 473 | NULL, NULL, |
484 | 474 | v3270_UINT__POINTER, |
485 | 475 | G_TYPE_UINT, 1, G_TYPE_POINTER); |
... | ... | @@ -488,7 +478,7 @@ static void v3270_class_init(v3270Class *klass) |
488 | 478 | g_signal_new( I_("save-popup-response"), |
489 | 479 | G_OBJECT_CLASS_TYPE (gobject_class), |
490 | 480 | G_SIGNAL_RUN_LAST, |
491 | - G_STRUCT_OFFSET (v3270Class, save_popup_response), | |
481 | + 0, | |
492 | 482 | NULL, NULL, |
493 | 483 | v3270_BOOLEAN__POINTER_UINT, |
494 | 484 | G_TYPE_BOOLEAN, 2, G_TYPE_POINTER, G_TYPE_UINT); |
... | ... | @@ -511,7 +501,7 @@ static void release_activity_timer(v3270 *widget) |
511 | 501 | |
512 | 502 | static void v3270_init(v3270 *widget) |
513 | 503 | { |
514 | - size_t ix; | |
504 | + // size_t ix; | |
515 | 505 | |
516 | 506 | widget->host = lib3270_session_new(NULL); |
517 | 507 | lib3270_set_user_data(widget->host,widget); | ... | ... |