From 23b0ec696a75df02fa2cacffa2a2b479320e1d78 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 29 Nov 2008 17:47:17 +0000 Subject: [PATCH] Change the way drag and drop is initiated. patch suggested by tgehrig. Bug #2486. svn: r11363 --- src/DisplayTabs/_EmbeddedList.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DisplayTabs/_EmbeddedList.py b/src/DisplayTabs/_EmbeddedList.py index 037168813..9f1c97e01 100644 --- a/src/DisplayTabs/_EmbeddedList.py +++ b/src/DisplayTabs/_EmbeddedList.py @@ -173,9 +173,9 @@ class EmbeddedList(ButtonTab): else: dnd_types = [ self._DND_TYPE.target() ] - self.tree.drag_dest_set(gtk.DEST_DEFAULT_ALL, dnd_types, - gtk.gdk.ACTION_COPY) - self.tree.drag_source_set(gtk.gdk.BUTTON1_MASK, + self.tree.enable_model_drag_dest(dnd_types, + gtk.gdk.ACTION_COPY) + self.tree.enable_model_drag_source(gtk.gdk.BUTTON1_MASK, [self._DND_TYPE.target()], gtk.gdk.ACTION_COPY) self.tree.connect('drag_data_get', self.drag_data_get)