summaryrefslogtreecommitdiff
path: root/java/eclipse/files/post-patch-plugins-swt-gtk-swt-FileDialog.java
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2009-02-15 03:19:44 +0000
committerGreg Lewis <glewis@FreeBSD.org>2009-02-15 03:19:44 +0000
commit98c91f0659633010ec6ff12d7dd9352270acd2c7 (patch)
tree63babb95eb65a71045c577895a5530cf7cdd7129 /java/eclipse/files/post-patch-plugins-swt-gtk-swt-FileDialog.java
parent- Fix MASTERSITES (diff)
. Update to 3.4.1 (from eclipse-devel).
Diffstat (limited to 'java/eclipse/files/post-patch-plugins-swt-gtk-swt-FileDialog.java')
-rw-r--r--java/eclipse/files/post-patch-plugins-swt-gtk-swt-FileDialog.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/java/eclipse/files/post-patch-plugins-swt-gtk-swt-FileDialog.java b/java/eclipse/files/post-patch-plugins-swt-gtk-swt-FileDialog.java
deleted file mode 100644
index 631f647124ef..000000000000
--- a/java/eclipse/files/post-patch-plugins-swt-gtk-swt-FileDialog.java
+++ /dev/null
@@ -1,36 +0,0 @@
---- plugins/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java.orig 2007-09-21 18:58:07.000000000 +0200
-+++ plugins/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java 2008-02-05 20:49:58.000000000 +0100
-@@ -378,29 +378,29 @@
- stringBuffer.append ('.');
- }
- 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 {
- 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);
- }
- }
- }