]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/nsselect.m (ns_decode_data_to_pasteboard): Fix GNUstep build.
authorPo Lu <luangruo@yahoo.com>
Sat, 28 May 2022 01:21:40 +0000 (09:21 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 28 May 2022 01:21:40 +0000 (09:21 +0800)
src/nsselect.m

index ce9d8ab3183ffcf1e61dfe8a2457ad70dda4d78c..1ff627e65790be455f5103eb9c80540c9270d2a8 100644 (file)
@@ -590,8 +590,14 @@ ns_decode_data_to_pasteboard (Lisp_Object type, Lisp_Object data,
 
       [pasteboard declareTypes: new
                         owner: nil];
+
+#if NS_USE_NSPasteboardTypeFileURL
       [pasteboard setString: [NSString stringWithLispString: data]
                    forType: NSPasteboardTypeFileURL];
+#else
+      [pasteboard setString: [NSString stringWithLispString: data]
+                   forType: NSFilenamesPboardType];
+#endif
     }
   else
     signal_error ("Unknown pasteboard type", type);