Implement writing of MIME data on drop

This commit is contained in:
Kovid Goyal
2026-04-21 13:32:02 +05:30
parent 1ca6dba7e1
commit d0a6b5eeac
3 changed files with 100 additions and 7 deletions

View File

@@ -2094,7 +2094,7 @@ dnd_test_fake_drop_data(PyObject *self UNUSED, PyObject *args) {
const char *mime;
RAII_PY_BUFFER(data);
int error_code = 0, no_eod = 0;
if (!PyArg_ParseTuple(args, "Ksy*|ii", &window_id, &mime, &data, &error_code, &no_eod)) return NULL;
if (!PyArg_ParseTuple(args, "Ksy*|ip", &window_id, &mime, &data, &error_code, &no_eod)) return NULL;
Window *w = window_for_window_id((id_type)window_id);
if (!w) { PyErr_SetString(PyExc_ValueError, "Window not found"); return NULL; }
if (error_code > 0) {