summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch')
-rw-r--r--org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch b/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch
new file mode 100644
index 0000000..0db37f0
--- /dev/null
+++ b/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch
@@ -0,0 +1,11 @@
+--- libgtk-java-2.6.2/src/jni/org_gnu_gtk_TextBuffer.c.orig 2005-09-30 22:50:27.000000000 +0200
++++ libgtk-java-2.6.2/src/jni/org_gnu_gtk_TextBuffer.c 2005-09-30 23:55:30.000000000 +0200
+@@ -120,7 +120,7 @@
+ const char *utf = (*env)->GetStringUTFChars(env, text, NULL);
+ jint len = (*env)->GetStringUTFLength(env, text);
+ gtk_text_buffer_insert_at_cursor (buffer_g,
+- (gchar*)utf, (gint32)len);
++ (gchar*)utf, (gint32)len - 1);
+ (*env)->ReleaseStringUTFChars(env, text, utf);
+ }
+