From 5ee92ee7e2a9936615a494aa814fa31eda0398e7 Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Tue, 13 Aug 2019 10:23:45 +0200 Subject: [PATCH] Fix drag n' drop issue with Quartz (macOS) backend --- grc/gui/Constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grc/gui/Constants.py b/grc/gui/Constants.py index a3d08cbe38..8210170302 100644 --- grc/gui/Constants.py +++ grc/gui/Constants.py @@ -52,7 +52,8 @@ STATE_CACHE_SIZE = 42 # Shared targets for drag and drop of blocks -DND_TARGETS = [('STRING', Gtk.TargetFlags.SAME_APP, 0)] +DND_TARGETS = [Gtk.TargetEntry.new('STRING', Gtk.TargetFlags.SAME_APP, 0), + Gtk.TargetEntry.new('UTF8_STRING', Gtk.TargetFlags.SAME_APP, 1)] # label constraint dimensions LABEL_SEPARATION = 3