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:
Cédric Krier
2023-01-14 23:42:30 +01:00
parent 9936e46e22
commit 1cfacecafc
@@ -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,