g_variant_new G_TP_L G_TP_R
g_variant_new G_TP_L G_TP_R
g_variant_new G_TP_L G_TP_R
g_variant_new G_TP_L G_TP_R
我觉得,首先你需要解构元组: GVariant *inner; g_variant_get (ret, "(v)", &inner); 然后分解一个元组: guint32 num; gboolean b; g_variant_get (inner, "(ub)", &num, &b);