< prev index next >

src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c

Print this page




 559             "gtk_file_chooser_set_current_folder");
 560     fp_gtk_file_chooser_set_filename = dl_symbol(
 561             "gtk_file_chooser_set_filename");
 562     fp_gtk_file_chooser_set_current_name = dl_symbol(
 563             "gtk_file_chooser_set_current_name");
 564     fp_gtk_file_filter_add_custom = dl_symbol("gtk_file_filter_add_custom");
 565     fp_gtk_file_chooser_set_filter = dl_symbol("gtk_file_chooser_set_filter");
 566     fp_gtk_file_chooser_get_type = dl_symbol("gtk_file_chooser_get_type");
 567     fp_gtk_file_filter_new = dl_symbol("gtk_file_filter_new");
 568     if (fp_gtk_check_version(2, 8, 0) == NULL) {
 569         fp_gtk_file_chooser_set_do_overwrite_confirmation = dl_symbol(
 570                 "gtk_file_chooser_set_do_overwrite_confirmation");
 571     }
 572     fp_gtk_file_chooser_set_select_multiple = dl_symbol(
 573             "gtk_file_chooser_set_select_multiple");
 574     fp_gtk_file_chooser_get_current_folder = dl_symbol(
 575             "gtk_file_chooser_get_current_folder");
 576     fp_gtk_file_chooser_get_filenames = dl_symbol(
 577             "gtk_file_chooser_get_filenames");
 578     fp_gtk_g_slist_length = dl_symbol("g_slist_length");

 579 }
 580 
 581 gboolean gtk2_load(JNIEnv *env)
 582 {
 583     gboolean result;
 584     int i;
 585     int (*handler)();
 586     int (*io_handler)();
 587     char *gtk_modules_env;
 588 
 589     gtk2_libhandle = dlopen(GTK2_LIB_VERSIONED, RTLD_LAZY | RTLD_LOCAL);
 590     if (gtk2_libhandle == NULL) {
 591         gtk2_libhandle = dlopen(GTK2_LIB, RTLD_LAZY | RTLD_LOCAL);
 592         if (gtk2_libhandle == NULL)
 593             return FALSE;
 594     }
 595 
 596     gthread_libhandle = dlopen(GTHREAD_LIB_VERSIONED, RTLD_LAZY | RTLD_LOCAL);
 597     if (gthread_libhandle == NULL) {
 598         gthread_libhandle = dlopen(GTHREAD_LIB, RTLD_LAZY | RTLD_LOCAL);




 559             "gtk_file_chooser_set_current_folder");
 560     fp_gtk_file_chooser_set_filename = dl_symbol(
 561             "gtk_file_chooser_set_filename");
 562     fp_gtk_file_chooser_set_current_name = dl_symbol(
 563             "gtk_file_chooser_set_current_name");
 564     fp_gtk_file_filter_add_custom = dl_symbol("gtk_file_filter_add_custom");
 565     fp_gtk_file_chooser_set_filter = dl_symbol("gtk_file_chooser_set_filter");
 566     fp_gtk_file_chooser_get_type = dl_symbol("gtk_file_chooser_get_type");
 567     fp_gtk_file_filter_new = dl_symbol("gtk_file_filter_new");
 568     if (fp_gtk_check_version(2, 8, 0) == NULL) {
 569         fp_gtk_file_chooser_set_do_overwrite_confirmation = dl_symbol(
 570                 "gtk_file_chooser_set_do_overwrite_confirmation");
 571     }
 572     fp_gtk_file_chooser_set_select_multiple = dl_symbol(
 573             "gtk_file_chooser_set_select_multiple");
 574     fp_gtk_file_chooser_get_current_folder = dl_symbol(
 575             "gtk_file_chooser_get_current_folder");
 576     fp_gtk_file_chooser_get_filenames = dl_symbol(
 577             "gtk_file_chooser_get_filenames");
 578     fp_gtk_g_slist_length = dl_symbol("g_slist_length");
 579     fp_gdk_x11_drawable_get_xid = dl_symbol("gdk_x11_drawable_get_xid");
 580 }
 581 
 582 gboolean gtk2_load(JNIEnv *env)
 583 {
 584     gboolean result;
 585     int i;
 586     int (*handler)();
 587     int (*io_handler)();
 588     char *gtk_modules_env;
 589 
 590     gtk2_libhandle = dlopen(GTK2_LIB_VERSIONED, RTLD_LAZY | RTLD_LOCAL);
 591     if (gtk2_libhandle == NULL) {
 592         gtk2_libhandle = dlopen(GTK2_LIB, RTLD_LAZY | RTLD_LOCAL);
 593         if (gtk2_libhandle == NULL)
 594             return FALSE;
 595     }
 596 
 597     gthread_libhandle = dlopen(GTHREAD_LIB_VERSIONED, RTLD_LAZY | RTLD_LOCAL);
 598     if (gthread_libhandle == NULL) {
 599         gthread_libhandle = dlopen(GTHREAD_LIB, RTLD_LAZY | RTLD_LOCAL);


< prev index next >