diff -Nru gtk+-2.24.25.orig/gdk/quartz/GdkQuartzView.c gtk+-2.24.25/gdk/quartz/GdkQuartzView.c
--- gtk+-2.24.25.orig/gdk/quartz/GdkQuartzView.c	2014-09-29 23:02:16.000000000 +0300
+++ gtk+-2.24.25/gdk/quartz/GdkQuartzView.c	2014-12-25 12:14:42.000000000 +0200
@@ -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;
