[pygobject/pygobject-3-30] GValue.get_value: fix crashes for Variants
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-30] GValue.get_value: fix crashes for Variants
- Date: Mon, 26 Nov 2018 21:40:14 +0000 (UTC)
commit 24feb14a1fa4d66947b7214f03a58267f9657d18
Author: Christoph Reiter <reiter christoph gmail com>
Date: Mon Nov 26 22:31:01 2018 +0100
GValue.get_value: fix crashes for Variants
backport from master
gi/overrides/GObject.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gi/overrides/GObject.py b/gi/overrides/GObject.py
index e2657299..fb548d81 100644
--- a/gi/overrides/GObject.py
+++ b/gi/overrides/GObject.py
@@ -345,7 +345,9 @@ class Value(GObjectModule.Value):
elif gtype == TYPE_GTYPE:
return self.get_gtype()
elif gtype == TYPE_VARIANT:
- return self.get_variant()
+ # get_variant was missing annotations
+ # https://gitlab.gnome.org/GNOME/glib/merge_requests/492
+ return self.dup_variant()
elif gtype == TYPE_PYOBJECT:
return self.get_boxed()
elif gtype == _gi.TYPE_INVALID:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]