[glib] gclosure: Support return values of GVariants



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]