Commit db77a72302ed54cdeb9f34bbbdf1773393bab26e
1 parent
2b27f48e
Exists in
master
and in
5 other branches
Versão sem suporte DBUS estava dando erro ao compilar
Showing
2 changed files
with
23 additions
and
16 deletions
Show diff stats
po/pt_BR.po
@@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
5 | msgstr "" | 5 | msgstr "" |
6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
8 | -"POT-Creation-Date: 2013-07-17 11:07-0300\n" | 8 | +"POT-Creation-Date: 2013-07-18 10:34-0300\n" |
9 | "PO-Revision-Date: 2013-07-03 10:51-0300\n" | 9 | "PO-Revision-Date: 2013-07-03 10:51-0300\n" |
10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
11 | "Language-Team: Português <perry.werneck@gmail.com>\n" | 11 | "Language-Team: Português <perry.werneck@gmail.com>\n" |
@@ -312,7 +312,7 @@ msgstr "Erro na assinatura CRL" | @@ -312,7 +312,7 @@ msgstr "Erro na assinatura CRL" | ||
312 | msgid "C_haracter Coding:" | 312 | msgid "C_haracter Coding:" |
313 | msgstr "C_odificação de caracteres:" | 313 | msgstr "C_odificação de caracteres:" |
314 | 314 | ||
315 | -#: print.c:409 | 315 | +#: print.c:412 |
316 | msgid "C_olor scheme:" | 316 | msgid "C_olor scheme:" |
317 | msgstr "Tema de c_ores:" | 317 | msgstr "Tema de c_ores:" |
318 | 318 | ||
@@ -1011,7 +1011,7 @@ msgstr "Estado normal na OIA" | @@ -1011,7 +1011,7 @@ msgstr "Estado normal na OIA" | ||
1011 | msgid "Option '%c:' is not supported" | 1011 | msgid "Option '%c:' is not supported" |
1012 | msgstr "Opção não suportada: '%c:'" | 1012 | msgstr "Opção não suportada: '%c:'" |
1013 | 1013 | ||
1014 | -#: print.c:601 | 1014 | +#: print.c:604 |
1015 | msgid "Options" | 1015 | msgid "Options" |
1016 | msgstr "Opções" | 1016 | msgstr "Opções" |
1017 | 1017 | ||
@@ -1208,11 +1208,11 @@ msgstr "Operação de impressão falhou" | @@ -1208,11 +1208,11 @@ msgstr "Operação de impressão falhou" | ||
1208 | msgid "Print selected" | 1208 | msgid "Print selected" |
1209 | msgstr "Imprimir seleção" | 1209 | msgstr "Imprimir seleção" |
1210 | 1210 | ||
1211 | -#: print.c:495 | 1211 | +#: print.c:498 |
1212 | msgid "Print selection box" | 1212 | msgid "Print selection box" |
1213 | msgstr "Imprimir marca de seleção" | 1213 | msgstr "Imprimir marca de seleção" |
1214 | 1214 | ||
1215 | -#: print.c:903 ui/00default.xml:372 | 1215 | +#: print.c:906 ui/00default.xml:372 |
1216 | msgid "Print settings" | 1216 | msgid "Print settings" |
1217 | msgstr "Configurações de impressão" | 1217 | msgstr "Configurações de impressão" |
1218 | 1218 | ||
@@ -2262,7 +2262,7 @@ msgstr "_Editar" | @@ -2262,7 +2262,7 @@ msgstr "_Editar" | ||
2262 | msgid "_File" | 2262 | msgid "_File" |
2263 | msgstr "_Arquivo" | 2263 | msgstr "_Arquivo" |
2264 | 2264 | ||
2265 | -#: print.c:409 | 2265 | +#: print.c:412 |
2266 | msgid "_Font:" | 2266 | msgid "_Font:" |
2267 | msgstr "_Fonte:" | 2267 | msgstr "_Fonte:" |
2268 | 2268 |
src/classlib/remote.cc
@@ -41,6 +41,14 @@ | @@ -41,6 +41,14 @@ | ||
41 | #if defined(WIN32) | 41 | #if defined(WIN32) |
42 | #include <windows.h> | 42 | #include <windows.h> |
43 | #include <pw3270/ipcpackets.h> | 43 | #include <pw3270/ipcpackets.h> |
44 | + #else | ||
45 | + #define HLLAPI_PACKET_IS_CONNECTED "isConnected" | ||
46 | + #define HLLAPI_PACKET_GET_CSTATE "getConnectionState" | ||
47 | + #define HLLAPI_PACKET_IS_READY "isReady" | ||
48 | + #define HLLAPI_PACKET_DISCONNECT "disconnect" | ||
49 | + #define HLLAPI_PACKET_GET_CURSOR "getCursorAddress" | ||
50 | + #define HLLAPI_PACKET_ENTER "enter" | ||
51 | + #define HLLAPI_PACKET_QUIT "quit" | ||
44 | #endif // WIN32 | 52 | #endif // WIN32 |
45 | 53 | ||
46 | #include <pw3270/class.h> | 54 | #include <pw3270/class.h> |
@@ -59,6 +67,7 @@ | @@ -59,6 +67,7 @@ | ||
59 | class remote : public session | 67 | class remote : public session |
60 | { | 68 | { |
61 | private: | 69 | private: |
70 | + | ||
62 | #if defined(WIN32) | 71 | #if defined(WIN32) |
63 | 72 | ||
64 | HANDLE hPipe; | 73 | HANDLE hPipe; |
@@ -121,14 +130,6 @@ | @@ -121,14 +130,6 @@ | ||
121 | 130 | ||
122 | #elif defined(HAVE_DBUS) | 131 | #elif defined(HAVE_DBUS) |
123 | 132 | ||
124 | - #define HLLAPI_PACKET_IS_CONNECTED "isConnected" | ||
125 | - #define HLLAPI_PACKET_GET_CSTATE "getConnectionState" | ||
126 | - #define HLLAPI_PACKET_IS_READY "isReady" | ||
127 | - #define HLLAPI_PACKET_DISCONNECT "disconnect" | ||
128 | - #define HLLAPI_PACKET_GET_CURSOR "getCursorAddress" | ||
129 | - #define HLLAPI_PACKET_ENTER "enter" | ||
130 | - #define HLLAPI_PACKET_QUIT "quit" | ||
131 | - | ||
132 | DBusConnection * conn; | 133 | DBusConnection * conn; |
133 | char * dest; | 134 | char * dest; |
134 | char * path; | 135 | char * path; |
@@ -257,10 +258,11 @@ | @@ -257,10 +258,11 @@ | ||
257 | 258 | ||
258 | #else | 259 | #else |
259 | 260 | ||
261 | + | ||
260 | int query_intval(const char *method) | 262 | int query_intval(const char *method) |
261 | { | 263 | { |
262 | throw exception("Call to unimplemented RPC method \"%s\"",method); | 264 | throw exception("Call to unimplemented RPC method \"%s\"",method); |
263 | - return -1 | 265 | + return -1; |
264 | } | 266 | } |
265 | 267 | ||
266 | #endif | 268 | #endif |
@@ -738,7 +740,9 @@ | @@ -738,7 +740,9 @@ | ||
738 | #if defined(WIN32) | 740 | #if defined(WIN32) |
739 | struct hllapi_packet_query_offset query = { HLLAPI_PACKET_GET_TEXT_AT_OFFSET, (unsigned short) baddr, (unsigned short) len }; | 741 | struct hllapi_packet_query_offset query = { HLLAPI_PACKET_GET_TEXT_AT_OFFSET, (unsigned short) baddr, (unsigned short) len }; |
740 | return query_string(&query,sizeof(query),len); | 742 | return query_string(&query,sizeof(query),len); |
741 | -#else | 743 | + |
744 | +#elif defined(HAVE_DBUS) | ||
745 | + | ||
742 | dbus_int32_t b = (dbus_int32_t) baddr; | 746 | dbus_int32_t b = (dbus_int32_t) baddr; |
743 | dbus_int32_t l = (dbus_int32_t) len; | 747 | dbus_int32_t l = (dbus_int32_t) len; |
744 | 748 | ||
@@ -750,6 +754,9 @@ | @@ -750,6 +754,9 @@ | ||
750 | dbus_message_append_args(msg, DBUS_TYPE_INT32, &b, DBUS_TYPE_INT32, &l, DBUS_TYPE_INVALID); | 754 | dbus_message_append_args(msg, DBUS_TYPE_INT32, &b, DBUS_TYPE_INT32, &l, DBUS_TYPE_INVALID); |
751 | 755 | ||
752 | return get_string(call(msg)); | 756 | return get_string(call(msg)); |
757 | +#else | ||
758 | + throw exception("%s","IPC support is unavailable"); | ||
759 | + return NULL; | ||
753 | #endif | 760 | #endif |
754 | } | 761 | } |
755 | 762 |