Change the way drag and drop is initiated. patch suggested by tgehrig. Bug #2486.

svn: r11363
This commit is contained in:
Gary Burton 2008-11-29 17:47:17 +00:00
parent 2a8b08675b
commit 23b0ec696a

View File

@ -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)