From: Martin Ling Date: Sun, 5 Jan 2020 18:25:13 +0000 (+0000) Subject: python: Apply typemap for VariantBase to VariantContainerBase. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8491cf7cad0e12cd74e0161dd263b4f4155db3ce;p=libsigrok.git python: Apply typemap for VariantBase to VariantContainerBase. Fixes #1480. --- diff --git a/bindings/python/sigrok/core/classes.i b/bindings/python/sigrok/core/classes.i index a00efff2..5c5cb3b3 100644 --- a/bindings/python/sigrok/core/classes.i +++ b/bindings/python/sigrok/core/classes.i @@ -112,6 +112,9 @@ typedef guint pyg_flags_type; g_free(value); } +/* Use the same typemap above for Glib::VariantContainerBase */ +%apply Glib::VariantBase { Glib::VariantContainerBase } + /* Map from callable PyObject to LogCallbackFunction */ %typecheck(SWIG_TYPECHECK_POINTER) sigrok::LogCallbackFunction { $1 = PyCallable_Check($input);