diff options
| author | Greg Lewis <glewis@FreeBSD.org> | 2010-07-10 19:34:30 +0000 |
|---|---|---|
| committer | Greg Lewis <glewis@FreeBSD.org> | 2010-07-10 19:34:30 +0000 |
| commit | 284dad3f6de67888b34ca18026e068770214b2ea (patch) | |
| tree | f0fbc6214a30b0af9a0fd70ecd7a22617d889975 /java/eclipse/files/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-FileDialog.java | |
| parent | ebf6393e5eb60c8e86ef9a2c59e7be5490358a70 (diff) | |
Notes
Diffstat (limited to 'java/eclipse/files/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-FileDialog.java')
| -rw-r--r-- | java/eclipse/files/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-FileDialog.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/java/eclipse/files/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-FileDialog.java b/java/eclipse/files/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-FileDialog.java deleted file mode 100644 index fb23bb2968ce..000000000000 --- a/java/eclipse/files/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-FileDialog.java +++ /dev/null @@ -1,51 +0,0 @@ ---- gtk/org/eclipse/swt/widgets/FileDialog.java.orig 2008-08-03 13:33:18.285923896 -0400 -+++ gtk/org/eclipse/swt/widgets/FileDialog.java 2008-08-03 13:36:14.527006003 -0400 -@@ -474,42 +474,42 @@ - } - stringBuffer.append (fileName); - byte [] buffer = Converter.wcsToMbcs (null, stringBuffer.toString (), true); -+ byte [] bufspc = new byte[1024]; - /* - * Bug in GTK. GtkFileChooser may crash on GTK versions 2.4.10 to 2.6 - * when setting a file name that is not a true canonical path. - * The fix is to use the canonical path. - */ -- int /*long*/ ptr = OS.realpath (buffer, null); -+ int /*long*/ ptr = OS.realpath (buffer, bufspc); - if (ptr != 0) { - OS.gtk_file_chooser_set_filename (handle, ptr); -- OS.g_free (ptr); - } - } else { - byte [] buffer = Converter.wcsToMbcs (null, stringBuffer.toString (), true); -+ byte [] bufspc = new byte[1024]; - /* - * Bug in GTK. GtkFileChooser may crash on GTK versions 2.4.10 to 2.6 - * when setting a file name that is not a true canonical path. - * The fix is to use the canonical path. - */ -- int /*long*/ ptr = OS.realpath (buffer, null); -+ int /*long*/ ptr = OS.realpath (buffer, bufspc); - if (ptr != 0) { - OS.gtk_file_chooser_set_current_folder (handle, ptr); -- OS.g_free (ptr); - } - } - } else { - if (fileName.length () > 0) { - if (fileName.charAt (0) == SEPARATOR) { - byte [] buffer = Converter.wcsToMbcs (null, fileName, true); -+ byte [] bufspc = new byte[1024]; - /* - * Bug in GTK. GtkFileChooser may crash on GTK versions 2.4.10 to 2.6 - * when setting a file name that is not a true canonical path. - * The fix is to use the canonical path. - */ -- int /*long*/ ptr = OS.realpath (buffer, null); -+ int /*long*/ ptr = OS.realpath (buffer, bufspc); - if (ptr != 0) { - OS.gtk_file_chooser_set_filename (handle, ptr); -- OS.g_free (ptr); - } - } - } |
