Commit 55070cc9 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Martin Pitt
Browse files

Fix marshalling of arrays of struct pointers to Python

Fill in the pointer to the struct, not the pointer to the
array position. This makes the GdkAtom** argument in
gtk_clipboard_wait_for_targets() work.
parent fc021516
......@@ -439,7 +439,10 @@ _pygi_marshal_to_py_array (PyGIInvokeState *state,
memcpy (_struct, array_->data + i * item_size,
item_arg.v_pointer = _struct;
} else
} else if (item_arg_cache->is_pointer)
/* this is the case for GAtom* arrays */
item_arg.v_pointer = g_array_index (array_, gpointer, i);
item_arg.v_pointer = array_->data + i * item_size;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment