Fix bug 2926. Two references created when dropping media onto gallery tab
svn: r13858
This commit is contained in:
parent
806bd63ca2
commit
b7169ff0b0
@ -365,11 +365,11 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
|||||||
dnd_types = [ self._DND_TYPE.target(), self._DND_EXTRA.target(),
|
dnd_types = [ self._DND_TYPE.target(), self._DND_EXTRA.target(),
|
||||||
DdTargets.MEDIAOBJ.target()]
|
DdTargets.MEDIAOBJ.target()]
|
||||||
|
|
||||||
self.iconlist.drag_dest_set(gtk.DEST_DEFAULT_ALL, dnd_types,
|
self.iconlist.enable_model_drag_dest(dnd_types,
|
||||||
gtk.gdk.ACTION_COPY)
|
gtk.gdk.ACTION_COPY)
|
||||||
self.iconlist.drag_source_set(gtk.gdk.BUTTON1_MASK,
|
self.iconlist.enable_model_drag_source(gtk.gdk.BUTTON1_MASK,
|
||||||
[self._DND_TYPE.target()],
|
[self._DND_TYPE.target()],
|
||||||
gtk.gdk.ACTION_COPY)
|
gtk.gdk.ACTION_COPY)
|
||||||
self.iconlist.connect('drag_data_get', self.drag_data_get)
|
self.iconlist.connect('drag_data_get', self.drag_data_get)
|
||||||
if not self.dbstate.db.readonly:
|
if not self.dbstate.db.readonly:
|
||||||
self.iconlist.connect('drag_data_received', self.drag_data_received)
|
self.iconlist.connect('drag_data_received', self.drag_data_received)
|
||||||
|
Loading…
Reference in New Issue
Block a user