From b7169ff0b0b9c68a0b4d448394fb05a11e03cf58 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sun, 20 Dec 2009 17:24:28 +0000 Subject: [PATCH] Fix bug 2926. Two references created when dropping media onto gallery tab svn: r13858 --- src/gui/editors/displaytabs/gallerytab.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/editors/displaytabs/gallerytab.py b/src/gui/editors/displaytabs/gallerytab.py index 0ec1bf090..66e0ddc5a 100644 --- a/src/gui/editors/displaytabs/gallerytab.py +++ b/src/gui/editors/displaytabs/gallerytab.py @@ -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)