diff options
author | Ted Gould <ted@gould.cx> | 2010-06-28 18:04:06 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-28 18:04:06 -0500 |
commit | 3d291c9bd937b20511efbebb938b3a6b059e8b14 (patch) | |
tree | a78821804165bb47ffa0b90845f848a8ab7d03ee | |
parent | cfa184b0c813bbc286dba830f909d4fbbe023352 (diff) | |
download | libdbusmenu-3d291c9bd937b20511efbebb938b3a6b059e8b14.tar.gz libdbusmenu-3d291c9bd937b20511efbebb938b3a6b059e8b14.tar.bz2 libdbusmenu-3d291c9bd937b20511efbebb938b3a6b059e8b14.zip |
Have the proper case for booleans
-rw-r--r-- | tools/dbusmenu-dumper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c index f2e2bec..6ce9655 100644 --- a/tools/dbusmenu-dumper.c +++ b/tools/dbusmenu-dumper.c @@ -116,6 +116,12 @@ value2string (const GValue * value, int depth) str = collection_dumper(value, depth); } else if (G_VALUE_TYPE(value) == G_TYPE_STRV) { str = strv_dumper(value); + } else if (G_VALUE_TYPE(value) == G_TYPE_BOOLEAN) { + if (g_value_get_boolean(value)) { + str = g_strdup("true"); + } else { + str = g_strdup("false"); + } } else { str = g_strdup_value_contents(value); } |