diff gui/inventorygui.py @ 142:c28e29056218

Removed source_container value from data_drag.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 18:22:48 +0200
parents 9e86c37f5506
children 86b9b181ad1c
line wrap: on
line diff
--- a/gui/inventorygui.py	Sun Oct 09 14:43:47 2011 +0200
+++ b/gui/inventorygui.py	Sun Oct 09 18:22:48 2011 +0200
@@ -199,7 +199,7 @@
                 drag_item = drag_item.containable
             # get the image of the widget
             image = drag_widget.image
-            self.setDragData(drag_item, image, image, self.container)
+            self.setDragData(drag_item, image, image)
             container.take_item(self.container, drag_item.slot)
             
             # after dragging the 'item', set the widgets' images
@@ -229,7 +229,7 @@
             #if there was no item the stop dragging and reset cursor
             if replace_item:
                 image = drop_widget.image
-                self.setDragData(replace_item, image, image, self.container)
+                self.setDragData(replace_item, image, image)
             else:
                 data_drag.dragging = False
                 #reset the mouse cursor to the normal cursor