[gtk+/gtk-2-24] Bug 741959 - text input broken on OS X 10.5 from 2.24.19 onwards
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Bug 741959 - text input broken on OS X 10.5 from 2.24.19 onwards
- Date: Sun, 28 Dec 2014 18:48:57 +0000 (UTC)
commit 4d1c065ae800050acd5f825d387c9c2dc817e5af
Author: Holin <holin iki fi>
Date: Sun Dec 28 10:46:13 2014 -0800
Bug 741959 - text input broken on OS X 10.5 from 2.24.19 onwards
Alias insertText:replacementRange: to insertText: for SDK > 10.6,
and implement insertText: for SDK < 10.6.
gdk/quartz/GdkQuartzView.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c
index 26700ff..881c5cb 100644
--- a/gdk/quartz/GdkQuartzView.c
+++ b/gdk/quartz/GdkQuartzView.c
@@ -186,8 +186,16 @@
[self performSelector: aSelector];
}
+/* This gets called on OS X 10.6 and upwards from interpretKeyEvents */
-(void)insertText: (id)aString replacementRange: (NSRange)replacementRange
{
+ [self insertText:aString];
+}
+
+/* This gets called on OS X 10.5 from interpretKeyEvents, although 10.5
+ * is supposed to support NSTextInputClient */
+-(void)insertText: (id)aString
+{
GDK_NOTE (EVENTS, g_print ("insertText\n"));
const char *str;
NSString *string;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]