[glib] gclosure: Support return values of GVariants
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gclosure: Support return values of GVariants
- Date: Tue, 10 Apr 2012 03:41:17 +0000 (UTC)
commit 825fdfdc9a7ad9a64ca2ea9184b7c7db397d37f8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 9 20:07:13 2012 -0300
gclosure: Support return values of GVariants
https://bugzilla.gnome.org/show_bug.cgi?id=673803
gobject/gclosure.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gclosure.c b/gobject/gclosure.c
index 2a43a90..c027315 100644
--- 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))));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]