/[classpath]/classpath/native/jni/qt-peer/mainqtthread.cpp
ViewVC logotype

Diff of /classpath/native/jni/qt-peer/mainqtthread.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by robilad, Mon Aug 15 21:53:12 2005 UTC revision 1.3 by smarothy, Sun Aug 21 00:19:49 2005 UTC
# Line 45  exception statement from your version. * Line 45  exception statement from your version. *
45  MainThreadInterface *mainThread;  MainThreadInterface *mainThread;
46  QApplication *qApplication;  QApplication *qApplication;
47    
48    #if defined(Q_WS_X11)
49    extern void qt_x11_set_global_double_buffer( bool );
50    #endif
51    
52  /**  /**
53   * Starts up a QApplication   * Starts up a QApplication
54   */   */
55  JNIEXPORT jlong JNICALL Java_gnu_java_awt_peer_qt_MainQtThread_init  JNIEXPORT jlong JNICALL Java_gnu_java_awt_peer_qt_MainQtThread_init
56  (JNIEnv *env, jobject obj, jstring theme)  (JNIEnv *env, jobject obj, jstring theme, jboolean doublebuffer)
57  {  {
58    int *argc;    int *argc;
59    char **argv;    char **argv;
# Line 88  JNIEXPORT jlong JNICALL Java_gnu_java_aw Line 92  JNIEXPORT jlong JNICALL Java_gnu_java_aw
92    jfieldID nofid = env->GetFieldID( cls, "mainThreadInterface", "J" );    jfieldID nofid = env->GetFieldID( cls, "mainThreadInterface", "J" );
93    env->SetLongField( obj, nofid, (jlong)mainThread );    env->SetLongField( obj, nofid, (jlong)mainThread );
94    
95    #if defined(Q_WS_X11)
96      // turn off double-buffering.
97      qt_x11_set_global_double_buffer( (doublebuffer == JNI_TRUE) );
98    #endif
99    
100    return (jlong)qtApp;    return (jlong)qtApp;
101  }  }
102    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26