[gtk/gtk-3-24: 1/2] accepts NSPasteboardTypeFileURL as "text/uri-list".
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] accepts NSPasteboardTypeFileURL as "text/uri-list".
- Date: Fri, 20 Aug 2021 13:23:08 +0000 (UTC)
commit ec4d27a4fce9ffa0451601a5c58b24ec686ca3ea
Author: Hiroyuki Ito <ZXB01226 nifty com>
Date: Sat Aug 14 09:38:36 2021 +0900
accepts NSPasteboardTypeFileURL as "text/uri-list".
gdk/quartz/gdkselection-quartz.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gdk/quartz/gdkselection-quartz.c b/gdk/quartz/gdkselection-quartz.c
index 79f8374420..fb102736cc 100644
--- a/gdk/quartz/gdkselection-quartz.c
+++ b/gdk/quartz/gdkselection-quartz.c
@@ -180,6 +180,7 @@ _gdk_quartz_display_text_property_to_utf8_list (GdkDisplay *display,
#define GDK_QUARTZ_STRING_PBOARD_TYPE NSStringPboardType
#define GDK_QUARTZ_TIFF_PBOARD_TYPE NSTIFFPboardType
#else
+#define GDK_QUARTZ_FILE_PBOARD_TYPE NSPasteboardTypeFileURL
#define GDK_QUARTZ_URL_PBOARD_TYPE NSPasteboardTypeURL
#define GDK_QUARTZ_COLOR_PBOARD_TYPE NSPasteboardTypeColor
#define GDK_QUARTZ_STRING_PBOARD_TYPE NSPasteboardTypeString
@@ -197,6 +198,10 @@ gdk_quartz_pasteboard_type_to_atom_libgtk_only (NSString *type)
return gdk_atom_intern_static_string ("application/x-color");
else if ([type isEqualToString:GDK_QUARTZ_URL_PBOARD_TYPE])
return gdk_atom_intern_static_string ("text/uri-list");
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
+ else if ([type isEqualToString:GDK_QUARTZ_FILE_PBOARD_TYPE])
+ return gdk_atom_intern_static_string ("text/uri-list");
+#endif
else
return gdk_atom_intern ([type UTF8String], FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]