sms: use g_variant_new_from_data instead of g_variant_new_fixed_array
ModemManager configure script currenty requires glib 2.30.2 or later, bud g_variant_new_fixed_array requires at least glib 2.32. To maintain the compatibility with glib 2.30, this patch modifies the code to use g_variant_new_from_data instead of g_variant_new_fixed_array.
This commit is contained in:
committed by
Aleksander Morgado
parent
02b71336ae
commit
143674ea3e
+6
-4
@@ -1001,10 +1001,12 @@ assemble_sms (MMSms *self,
|
||||
/* If we got everything, assemble the text! */
|
||||
g_object_set (self,
|
||||
"text", fulltext,
|
||||
"data", g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
|
||||
fulldata->data,
|
||||
fulldata->len,
|
||||
sizeof (guchar)),
|
||||
"data", g_variant_new_from_data (G_VARIANT_TYPE ("ay"),
|
||||
fulldata->data,
|
||||
fulldata->len * sizeof (guint8),
|
||||
TRUE,
|
||||
NULL,
|
||||
NULL),
|
||||
"smsc", mm_sms_part_get_smsc (sorted_parts[0]),
|
||||
"class", mm_sms_part_get_class (sorted_parts[0]),
|
||||
"number", mm_sms_part_get_number (sorted_parts[0]),
|
||||
|
||||
Reference in New Issue
Block a user