src/macosx/native/sun/awt/CDragSourceContextPeer.m

Print this page

        

*** 44,54 **** { id controlObj = (id) jlong_to_ptr(jnativepeer); __block CDragSource* dragSource = nil; JNF_COCOA_ENTER(env); ! [JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){ dragSource = [[CDragSource alloc] init:jthis component:jcomponent peer:jpeer control:controlObj transferable:jtransferable triggerEvent:jtrigger dragPosX:jdragposx dragPosY:jdragposy modifiers:jextmodifiers clickCount:jclickcount timeStamp:jtimestamp cursor:jcursor dragImage:jnsdragimage dragImageOffsetX:jdragimageoffsetx dragImageOffsetY:jdragimageoffsety sourceActions:jsourceactions --- 44,54 ---- { id controlObj = (id) jlong_to_ptr(jnativepeer); __block CDragSource* dragSource = nil; JNF_COCOA_ENTER(env); ! [ThreadUtilities performOnMainThreadWaiting:YES block:^(){ dragSource = [[CDragSource alloc] init:jthis component:jcomponent peer:jpeer control:controlObj transferable:jtransferable triggerEvent:jtrigger dragPosX:jdragposx dragPosY:jdragposy modifiers:jextmodifiers clickCount:jclickcount timeStamp:jtimestamp cursor:jcursor dragImage:jnsdragimage dragImageOffsetX:jdragimageoffsetx dragImageOffsetY:jdragimageoffsety sourceActions:jsourceactions
*** 101,111 **** * Signature: (JLjava/awt/Cursor;I)V */ JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CDragSourceContextPeer_setNativeCursor (JNIEnv *env, jobject jthis, jlong nativeDragSourceVal, jobject jcursor, jint jcursortype) { ! AWT_ASSERT_NOT_APPKIT_THREAD; //JNF_COCOA_ENTER(env); // jobject gCursor = JNFNewGlobalRef(env, jcursor); // [EventFactory setJavaCursor:gCursor withEnv:env]; //JNF_COCOA_EXIT(env); --- 101,111 ---- * Signature: (JLjava/awt/Cursor;I)V */ JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CDragSourceContextPeer_setNativeCursor (JNIEnv *env, jobject jthis, jlong nativeDragSourceVal, jobject jcursor, jint jcursortype) { ! //AWT_ASSERT_NOT_APPKIT_THREAD; //JNF_COCOA_ENTER(env); // jobject gCursor = JNFNewGlobalRef(env, jcursor); // [EventFactory setJavaCursor:gCursor withEnv:env]; //JNF_COCOA_EXIT(env);