diff src/parpg/gui/inventorygui.py @ 172:2d671e57badb

Removed source_container value from data_drag.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 18:22:48 +0200
parents 6d07093e9d51
children ee4c1fe78be1
line wrap: on
line diff
--- a/src/parpg/gui/inventorygui.py	Sun Oct 09 14:43:47 2011 +0200
+++ b/src/parpg/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