gclosure: Support return values of GVariants
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 9 Apr 2012 23:07:13 +0000 (20:07 -0300)
committerJasper 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

index 2a43a9030ec365e43128b440067c511c4f07f84c..c0273154ba85be252b86ae03767a965f5f72d5ca 100644 (file)
@@ -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))));