[gtk+] tests: Make rendernode --dump-variant actually work
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Make rendernode --dump-variant actually work
- Date: Mon, 26 Dec 2016 16:23:02 +0000 (UTC)
commit d7e867aa95583a107e5b8174caab6b9121acc16a
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 26 17:07:24 2016 +0100
tests: Make rendernode --dump-variant actually work
tests/rendernode.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/rendernode.c b/tests/rendernode.c
index d7924d2..42781a1 100644
--- a/tests/rendernode.c
+++ b/tests/rendernode.c
@@ -53,8 +53,11 @@ main(int argc, char **argv)
if (dump_variant)
{
GVariant *variant = g_variant_new_from_bytes (G_VARIANT_TYPE ("(suuv)"), bytes, FALSE);
+ char *s;
- g_variant_print (variant, FALSE);
+ s = g_variant_print (variant, FALSE);
+ g_print ("%s\n", s);
+ g_free (s);
g_variant_unref (variant);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]