From f58e1770bef4b7be58e01f943b20f6c2ad6789a3 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Thu, 28 Feb 2013 10:28:14 +0000 Subject: [PATCH] Corrigindo debug de plugins no linux --- po/pt_BR.po | 2 +- src/plugins/remotectl/calls.c | 2 +- src/pw3270/plugin.c | 13 +++++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 50b057e..9911edb 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-02-27 07:14-0300\n" +"POT-Creation-Date: 2013-02-28 07:17-0300\n" "PO-Revision-Date: 2013-02-25 14:46-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português <>\n" diff --git a/src/plugins/remotectl/calls.c b/src/plugins/remotectl/calls.c index 2fda904..cc9bc2b 100644 --- a/src/plugins/remotectl/calls.c +++ b/src/plugins/remotectl/calls.c @@ -219,7 +219,7 @@ if(!(host_connect && hSession && uri)) return EINVAL; - return host_connect(hSession,uri,1); + return host_connect(hSession,uri,0); } __declspec (dllexport) DWORD __stdcall hllapi_disconnect(void) diff --git a/src/pw3270/plugin.c b/src/pw3270/plugin.c index 83e05fe..931f2b7 100644 --- a/src/pw3270/plugin.c +++ b/src/pw3270/plugin.c @@ -145,9 +145,18 @@ if(!g_file_test(path,G_FILE_TEST_IS_DIR)) { g_free(path); - path = pw3270_build_filename(widget,"plugins",NULL); + + path = g_build_filename(dir,".bin","Debug","plugins",NULL); + trace("%s testing [%s]",__FUNCTION__,path); + + if(!g_file_test(path,G_FILE_TEST_IS_DIR)) + { + g_free(path); + path = pw3270_build_filename(widget,"plugins",NULL); + trace("%s using [%s]",__FUNCTION__,path); + } } - + load(path,widget); g_free(path); -- libgit2 0.21.2