Commit ef8c8345b794208031216e70753fd368893c0fc0

Authored by perry.werneck@gmail.com
1 parent 07f46157

Incluindo popup notificando usuário de uma ação "cut" não suportada

android/jni/globals.h
@@ -34,11 +34,8 @@ @@ -34,11 +34,8 @@
34 34
35 /*--[ Defines ]--------------------------------------------------------------------------------------*/ 35 /*--[ Defines ]--------------------------------------------------------------------------------------*/
36 36
37 - #define PW3270_JNI_BEGIN __android_log_print(ANDROID_LOG_VERBOSE, PACKAGE_NAME, "%s.lock env=%p obj=%p",__FUNCTION__,env,obj); \  
38 - pw3270_jni_lock(env,obj);  
39 -  
40 - #define PW3270_JNI_END __android_log_print(ANDROID_LOG_VERBOSE, PACKAGE_NAME, "%s.unlock env=%p obj=%p",__FUNCTION__,pw3270_jni_active->env,pw3270_jni_active->obj); \  
41 - pw3270_jni_unlock(); 37 + #define PW3270_JNI_BEGIN pw3270_jni_lock(env,obj);
  38 + #define PW3270_JNI_END pw3270_jni_unlock();
42 39
43 #define PW3270_JNI_ENV pw3270_jni_active->env 40 #define PW3270_JNI_ENV pw3270_jni_active->env
44 #define PW3270_JNI_OBJ pw3270_jni_active->obj 41 #define PW3270_JNI_OBJ pw3270_jni_active->obj
src/lib3270/selection.c
@@ -544,6 +544,7 @@ LIB3270_EXPORT char * lib3270_cut_selected(H3270 *hSession) @@ -544,6 +544,7 @@ LIB3270_EXPORT char * lib3270_cut_selected(H3270 *hSession)
544 if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_RECTANGLE_SELECT)) 544 if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_RECTANGLE_SELECT))
545 { 545 {
546 // Rectangle cut is not implemented 546 // Rectangle cut is not implemented
  547 + lib3270_popup_dialog(hSession, LIB3270_NOTIFY_INFO, _( "Not available" ), _( "Invalid cut action" ), "%s", _( "Can't cut rectangular regions") );
547 } 548 }
548 else 549 else
549 { 550 {