equal
deleted
inserted
replaced
457 } |
457 } |
458 |
458 |
459 /** |
459 /** |
460 * Functions for sun_awt_X11_GtkFileDialogPeer.c |
460 * Functions for sun_awt_X11_GtkFileDialogPeer.c |
461 */ |
461 */ |
462 static void gtk2_file_chooser_load() |
462 static void gtk2_file_chooser_load(void) |
463 { |
463 { |
464 fp_gtk_file_chooser_get_filename = dl_symbol( |
464 fp_gtk_file_chooser_get_filename = dl_symbol( |
465 "gtk_file_chooser_get_filename"); |
465 "gtk_file_chooser_get_filename"); |
466 fp_gtk_file_chooser_dialog_new = dl_symbol("gtk_file_chooser_dialog_new"); |
466 fp_gtk_file_chooser_dialog_new = dl_symbol("gtk_file_chooser_dialog_new"); |
467 fp_gtk_file_chooser_set_current_folder = dl_symbol( |
467 fp_gtk_file_chooser_set_current_folder = dl_symbol( |
843 return gtk; |
843 return gtk; |
844 } |
844 } |
845 return NULL; |
845 return NULL; |
846 } |
846 } |
847 |
847 |
848 int gtk2_unload() |
848 int gtk2_unload(void) |
849 { |
849 { |
850 int i; |
850 int i; |
851 char *gtk2_error; |
851 char *gtk2_error; |
852 |
852 |
853 if (!gtk2_libhandle) |
853 if (!gtk2_libhandle) |
884 } |
884 } |
885 |
885 |
886 /* Dispatch all pending events from the GTK event loop. |
886 /* Dispatch all pending events from the GTK event loop. |
887 * This is needed to catch theme change and update widgets' style. |
887 * This is needed to catch theme change and update widgets' style. |
888 */ |
888 */ |
889 static void flush_gtk_event_loop() |
889 static void flush_gtk_event_loop(void) |
890 { |
890 { |
891 while( (*fp_g_main_context_iteration)(NULL, FALSE)); |
891 while( (*fp_g_main_context_iteration)(NULL, FALSE)); |
892 } |
892 } |
893 |
893 |
894 /* |
894 /* |
895 * Initialize components of containment hierarchy. This creates a GtkFixed |
895 * Initialize components of containment hierarchy. This creates a GtkFixed |
896 * inside a GtkWindow. All widgets get realized. |
896 * inside a GtkWindow. All widgets get realized. |
897 */ |
897 */ |
898 static void init_containers() |
898 static void init_containers(void) |
899 { |
899 { |
900 if (gtk2_window == NULL) |
900 if (gtk2_window == NULL) |
901 { |
901 { |
902 gtk2_window = (*fp_gtk_window_new)(GTK_WINDOW_TOPLEVEL); |
902 gtk2_window = (*fp_gtk_window_new)(GTK_WINDOW_TOPLEVEL); |
903 gtk2_fixed = (GtkFixed *)(*fp_gtk_fixed_new)(); |
903 gtk2_fixed = (GtkFixed *)(*fp_gtk_fixed_new)(); |
1141 |
1141 |
1142 (*fp_gtk_arrow_set)(arrow, arrow_type, shadow_type); |
1142 (*fp_gtk_arrow_set)(arrow, arrow_type, shadow_type); |
1143 return arrow; |
1143 return arrow; |
1144 } |
1144 } |
1145 |
1145 |
1146 static GtkAdjustment* create_adjustment() |
1146 static GtkAdjustment* create_adjustment(void) |
1147 { |
1147 { |
1148 return (GtkAdjustment *) |
1148 return (GtkAdjustment *) |
1149 (*fp_gtk_adjustment_new)(50.0, 0.0, 100.0, 10.0, 20.0, 20.0); |
1149 (*fp_gtk_adjustment_new)(50.0, 0.0, 100.0, 10.0, 20.0, 20.0); |
1150 } |
1150 } |
1151 |
1151 |