[gtk/gtk-3-24-meson: 13/95] gtk: Fix paste/clipboard usage on macOS



commit cde5a3f4b43263076a8c0fefbaf22b38417e0fa3
Author: Philippe Normand <phil base-art net>
Date:   Sun Nov 25 17:22:30 2018 +0000

    gtk: Fix paste/clipboard usage on macOS
    
    In Mojave the build fails because declareTypes is nil. Instead use the
    clearContents method, although I'm not really sure this is the same.

 gtk/gtkdnd-quartz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index f4ee86982e..072b7e4e12 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -1588,7 +1588,7 @@ gtk_drag_source_info_destroy (GtkDragSourceInfo *info)
    * info->context after it has been destroyed.
    */
   pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard];
-  [pasteboard declareTypes: nil owner: nil];
+  [pasteboard clearContents];
 
   [pool release];
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]