Fix bug 2926. Two references created when dropping media onto gallery tab

svn: r13858
This commit is contained in:
Gary Burton 2009-12-20 17:24:28 +00:00
parent 806bd63ca2
commit b7169ff0b0

View File

@ -365,11 +365,11 @@ class GalleryTab(ButtonTab, DbGUIElement):
dnd_types = [ self._DND_TYPE.target(), self._DND_EXTRA.target(),
DdTargets.MEDIAOBJ.target()]
self.iconlist.drag_dest_set(gtk.DEST_DEFAULT_ALL, dnd_types,
gtk.gdk.ACTION_COPY)
self.iconlist.drag_source_set(gtk.gdk.BUTTON1_MASK,
[self._DND_TYPE.target()],
gtk.gdk.ACTION_COPY)
self.iconlist.enable_model_drag_dest(dnd_types,
gtk.gdk.ACTION_COPY)
self.iconlist.enable_model_drag_source(gtk.gdk.BUTTON1_MASK,
[self._DND_TYPE.target()],
gtk.gdk.ACTION_COPY)
self.iconlist.connect('drag_data_get', self.drag_data_get)
if not self.dbstate.db.readonly:
self.iconlist.connect('drag_data_received', self.drag_data_received)