diff --git a/po/pt_BR.po b/po/pt_BR.po index 97d41ef..d2e1bc0 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-07-17 11:07-0300\n" +"POT-Creation-Date: 2013-07-18 10:34-0300\n" "PO-Revision-Date: 2013-07-03 10:51-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português \n" @@ -312,7 +312,7 @@ msgstr "Erro na assinatura CRL" msgid "C_haracter Coding:" msgstr "C_odificação de caracteres:" -#: print.c:409 +#: print.c:412 msgid "C_olor scheme:" msgstr "Tema de c_ores:" @@ -1011,7 +1011,7 @@ msgstr "Estado normal na OIA" msgid "Option '%c:' is not supported" msgstr "Opção não suportada: '%c:'" -#: print.c:601 +#: print.c:604 msgid "Options" msgstr "Opções" @@ -1208,11 +1208,11 @@ msgstr "Operação de impressão falhou" msgid "Print selected" msgstr "Imprimir seleção" -#: print.c:495 +#: print.c:498 msgid "Print selection box" msgstr "Imprimir marca de seleção" -#: print.c:903 ui/00default.xml:372 +#: print.c:906 ui/00default.xml:372 msgid "Print settings" msgstr "Configurações de impressão" @@ -2262,7 +2262,7 @@ msgstr "_Editar" msgid "_File" msgstr "_Arquivo" -#: print.c:409 +#: print.c:412 msgid "_Font:" msgstr "_Fonte:" diff --git a/src/classlib/remote.cc b/src/classlib/remote.cc index eefd8c4..026a817 100644 --- a/src/classlib/remote.cc +++ b/src/classlib/remote.cc @@ -41,6 +41,14 @@ #if defined(WIN32) #include #include + #else + #define HLLAPI_PACKET_IS_CONNECTED "isConnected" + #define HLLAPI_PACKET_GET_CSTATE "getConnectionState" + #define HLLAPI_PACKET_IS_READY "isReady" + #define HLLAPI_PACKET_DISCONNECT "disconnect" + #define HLLAPI_PACKET_GET_CURSOR "getCursorAddress" + #define HLLAPI_PACKET_ENTER "enter" + #define HLLAPI_PACKET_QUIT "quit" #endif // WIN32 #include @@ -59,6 +67,7 @@ class remote : public session { private: + #if defined(WIN32) HANDLE hPipe; @@ -121,14 +130,6 @@ #elif defined(HAVE_DBUS) - #define HLLAPI_PACKET_IS_CONNECTED "isConnected" - #define HLLAPI_PACKET_GET_CSTATE "getConnectionState" - #define HLLAPI_PACKET_IS_READY "isReady" - #define HLLAPI_PACKET_DISCONNECT "disconnect" - #define HLLAPI_PACKET_GET_CURSOR "getCursorAddress" - #define HLLAPI_PACKET_ENTER "enter" - #define HLLAPI_PACKET_QUIT "quit" - DBusConnection * conn; char * dest; char * path; @@ -257,10 +258,11 @@ #else + int query_intval(const char *method) { throw exception("Call to unimplemented RPC method \"%s\"",method); - return -1 + return -1; } #endif @@ -738,7 +740,9 @@ #if defined(WIN32) struct hllapi_packet_query_offset query = { HLLAPI_PACKET_GET_TEXT_AT_OFFSET, (unsigned short) baddr, (unsigned short) len }; return query_string(&query,sizeof(query),len); -#else + +#elif defined(HAVE_DBUS) + dbus_int32_t b = (dbus_int32_t) baddr; dbus_int32_t l = (dbus_int32_t) len; @@ -750,6 +754,9 @@ dbus_message_append_args(msg, DBUS_TYPE_INT32, &b, DBUS_TYPE_INT32, &l, DBUS_TYPE_INVALID); return get_string(call(msg)); +#else + throw exception("%s","IPC support is unavailable"); + return NULL; #endif } -- libgit2 0.21.2