188 |
cp_gtk_checkbox_init_jni (); |
cp_gtk_checkbox_init_jni (); |
189 |
cp_gtk_choice_init_jni (); |
cp_gtk_choice_init_jni (); |
190 |
cp_gtk_component_init_jni (); |
cp_gtk_component_init_jni (); |
191 |
|
cp_gtk_filedialog_init_jni (); |
192 |
cp_gtk_list_init_jni (); |
cp_gtk_list_init_jni (); |
193 |
cp_gtk_menuitem_init_jni (); |
cp_gtk_menuitem_init_jni (); |
194 |
cp_gtk_scrollbar_init_jni (); |
cp_gtk_scrollbar_init_jni (); |
397 |
jint *colors; |
jint *colors; |
398 |
GtkStyle *style; |
GtkStyle *style; |
399 |
|
|
400 |
|
/* FIXME: this was deadlocking so assume it is thread-safe for now; |
401 |
|
we need to replace this call with a .properties file anyway. */ |
402 |
|
#if 0 |
403 |
gdk_threads_enter (); |
gdk_threads_enter (); |
404 |
|
#endif |
405 |
|
|
406 |
colors = (*env)->GetIntArrayElements (env, jcolors, 0); |
colors = (*env)->GetIntArrayElements (env, jcolors, 0); |
407 |
|
|
436 |
|
|
437 |
(*env)->ReleaseIntArrayElements(env, jcolors, colors, 0); |
(*env)->ReleaseIntArrayElements(env, jcolors, colors, 0); |
438 |
|
|
439 |
|
#if 0 |
440 |
gdk_threads_leave (); |
gdk_threads_leave (); |
441 |
|
#endif |
442 |
} |
} |
443 |
|
|
444 |
#undef CONVERT |
#undef CONVERT |