[gtk/gtk-3-24-meson: 9/89] gtk: Fix paste/clipboard usage on macOS



commit d09e9f7747beb8f5267e5ed20fbce2ea629e1d8b
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]