comparison src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c @ 3225:4becb3dd7861

6998592: FileDialog tests crashed on solaris Summary: Override GtkFileDialogPeer.toFront() Reviewed-by: art, dcherepanov
author anthony
date Tue, 30 Nov 2010 17:36:56 +0300
parents 9c7c5ecea41a
children 78364959fc73
comparison
equal deleted inserted replaced
3:b475ec1b244f 4:e8747453318f
78 (JNIEnv * env, jobject jpeer) 78 (JNIEnv * env, jobject jpeer)
79 { 79 {
80 quit(env, jpeer, FALSE); 80 quit(env, jpeer, FALSE);
81 } 81 }
82 82
83 /*
84 * Class: sun_awt_X11_GtkFileDialogPeer
85 * Method: toFront
86 * Signature: ()V
87 */
88 JNIEXPORT void JNICALL Java_sun_awt_X11_GtkFileDialogPeer_toFront
89 (JNIEnv * env, jobject jpeer)
90 {
91 GtkWidget * dialog;
92
93 fp_gdk_threads_enter();
94
95 dialog = (GtkWidget*)jlong_to_ptr(
96 (*env)->GetLongField(env, jpeer, widgetFieldID));
97
98 if (dialog != NULL) {
99 fp_gtk_window_present((GtkWindow*)dialog);
100 }
101
102 fp_gdk_threads_leave();
103 }
104
83 /** 105 /**
84 * Convert a GSList to an array of filenames (without the parent folder) 106 * Convert a GSList to an array of filenames (without the parent folder)
85 */ 107 */
86 static jobjectArray toFilenamesArray(JNIEnv *env, GSList* list) 108 static jobjectArray toFilenamesArray(JNIEnv *env, GSList* list)
87 { 109 {