[ostree] libotutil: Drop accidental use of GLib 2.36 API
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] libotutil: Drop accidental use of GLib 2.36 API
- Date: Sun, 18 Aug 2013 11:52:59 +0000 (UTC)
commit b35840e1b8b1f5c87b999bbe4bd460de327a05b9
Author: Colin Walters <walters verbum org>
Date: Sun Aug 18 07:50:50 2013 -0400
libotutil: Drop accidental use of GLib 2.36 API
Sticking with 2.34 for a while longer.
src/libotutil/ot-variant-utils.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/libotutil/ot-variant-utils.c b/src/libotutil/ot-variant-utils.c
index ecf6c84..7b034a4 100644
--- a/src/libotutil/ot-variant-utils.c
+++ b/src/libotutil/ot-variant-utils.c
@@ -44,7 +44,12 @@ ot_gvariant_new_bytearray (const guchar *data,
GVariant *
ot_gvariant_new_ay_bytes (GBytes *bytes)
{
- return g_variant_new_from_bytes (G_VARIANT_TYPE ("ay"), bytes, TRUE);
+ gsize size;
+ gconstpointer data;
+ data = g_bytes_get_data (bytes, &size);
+ g_bytes_ref (bytes);
+ return g_variant_new_from_data (G_VARIANT_TYPE ("ay"), data, size,
+ TRUE, (GDestroyNotify)g_bytes_unref, bytes);
}
GHashTable *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]