Use Gdk.drag_status to set COPY action
In Gtk 3.0 the method is now in Gdk instead of the context. Closes #11514
This commit is contained in:
@@ -71,7 +71,7 @@ class Image(BinaryMixin, Widget):
|
||||
def drag_motion(self, widget, context, x, y, timestamp):
|
||||
if self._readonly:
|
||||
return False
|
||||
context.drag_status(Gdk.DragAction.COPY, timestamp)
|
||||
Gdk.drag_status(context, Gdk.DragAction.COPY, timestamp)
|
||||
return True
|
||||
|
||||
def drag_data_received(self, widget, context, x, y, selection,
|
||||
|
||||
Reference in New Issue
Block a user