projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c39d695
)
gclosure: Support return values of GVariants
author
Jasper St. Pierre
<jstpierre@mecheye.net>
Mon, 9 Apr 2012 23:07:13 +0000
(20:07 -0300)
committer
Jasper St. Pierre
<jstpierre@mecheye.net>
Tue, 10 Apr 2012 03:41:00 +0000
(23:41 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=673803
gobject/gclosure.c
patch
|
blob
|
history
diff --git
a/gobject/gclosure.c
b/gobject/gclosure.c
index 2a43a9030ec365e43128b440067c511c4f07f84c..c0273154ba85be252b86ae03767a965f5f72d5ca 100644
(file)
--- a/
gobject/gclosure.c
+++ b/
gobject/gclosure.c
@@
-1272,6
+1272,9
@@
value_from_ffi_type (GValue *gvalue, gpointer *value)
case G_TYPE_OBJECT:
g_value_set_object (gvalue, *(gpointer*)value);
break;
+ case G_TYPE_VARIANT:
+ g_value_set_variant (gvalue, *(gpointer*)value);
+ break;
default:
g_warning ("value_from_ffi_type: Unsupported fundamental type: %s",
g_type_name (g_type_fundamental (G_VALUE_TYPE (gvalue))));