< prev index next >

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

Print this page




 814            We handle them specially here.
 815          */
 816         fp_gtk_combo_box_new = dlsym(gtk2_libhandle, "gtk_combo_box_new");
 817         if (fp_gtk_combo_box_new == NULL) {
 818             fp_gtk_combo_box_new = dl_symbol("gtk_combo_new");
 819         }
 820 
 821         fp_gtk_combo_box_entry_new =
 822             dlsym(gtk2_libhandle, "gtk_combo_box_entry_new");
 823         if (fp_gtk_combo_box_entry_new == NULL) {
 824             fp_gtk_combo_box_entry_new = dl_symbol("gtk_combo_new");
 825             new_combo = FALSE;
 826         }
 827 
 828         fp_gtk_separator_tool_item_new =
 829             dlsym(gtk2_libhandle, "gtk_separator_tool_item_new");
 830         if (fp_gtk_separator_tool_item_new == NULL) {
 831             fp_gtk_separator_tool_item_new =
 832                 dl_symbol("gtk_vseparator_new");
 833         }




 834     }
 835     /* Now we have only one kind of exceptions: NO_SYMBOL_EXCEPTION
 836      * Otherwise we can check the return value of setjmp method.
 837      */
 838     else
 839     {
 840         dlclose(gtk2_libhandle);
 841         gtk2_libhandle = NULL;
 842 
 843         dlclose(gthread_libhandle);
 844         gthread_libhandle = NULL;
 845 
 846         return FALSE;
 847     }
 848 
 849     /*
 850      * Strip the AT-SPI GTK_MODULEs if present
 851      */
 852     gtk_modules_env = getenv ("GTK_MODULES");
 853 




 814            We handle them specially here.
 815          */
 816         fp_gtk_combo_box_new = dlsym(gtk2_libhandle, "gtk_combo_box_new");
 817         if (fp_gtk_combo_box_new == NULL) {
 818             fp_gtk_combo_box_new = dl_symbol("gtk_combo_new");
 819         }
 820 
 821         fp_gtk_combo_box_entry_new =
 822             dlsym(gtk2_libhandle, "gtk_combo_box_entry_new");
 823         if (fp_gtk_combo_box_entry_new == NULL) {
 824             fp_gtk_combo_box_entry_new = dl_symbol("gtk_combo_new");
 825             new_combo = FALSE;
 826         }
 827 
 828         fp_gtk_separator_tool_item_new =
 829             dlsym(gtk2_libhandle, "gtk_separator_tool_item_new");
 830         if (fp_gtk_separator_tool_item_new == NULL) {
 831             fp_gtk_separator_tool_item_new =
 832                 dl_symbol("gtk_vseparator_new");
 833         }
 834 
 835         fp_g_list_append = dl_symbol("g_list_append");
 836         fp_g_list_free = dl_symbol("g_list_free");
 837         fp_g_list_free_full = dl_symbol("g_list_free_full");
 838     }
 839     /* Now we have only one kind of exceptions: NO_SYMBOL_EXCEPTION
 840      * Otherwise we can check the return value of setjmp method.
 841      */
 842     else
 843     {
 844         dlclose(gtk2_libhandle);
 845         gtk2_libhandle = NULL;
 846 
 847         dlclose(gthread_libhandle);
 848         gthread_libhandle = NULL;
 849 
 850         return FALSE;
 851     }
 852 
 853     /*
 854      * Strip the AT-SPI GTK_MODULEs if present
 855      */
 856     gtk_modules_env = getenv ("GTK_MODULES");
 857 


< prev index next >