[folks] inspect: Fix listing GStrv properties
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] inspect: Fix listing GStrv properties
- Date: Sat, 13 Aug 2011 16:57:02 +0000 (UTC)
commit b86ff783cd81375db8cddf31486d3fcb0deaaa9f
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Aug 13 18:56:30 2011 +0100
inspect: Fix listing GStrv properties
We have to work around bgo#656467 for the moment.
tools/inspect/utils.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala
index 6719a6f..670bd6c 100644
--- a/tools/inspect/utils.vala
+++ b/tools/inspect/utils.vala
@@ -69,8 +69,10 @@ private class Folks.Inspect.Utils
unowned string[] array = (string[]) src.get_boxed ();
string output = "{ ";
bool first = true;
- foreach (string element in array)
+ /* FIXME: Work around bgo#656467 by using for() instead of foreach() */
+ for (uint i = 0; array[i] != null; i++)
{
+ var element = array[i];
if (first == false)
output += ", ";
output += "'%s'".printf (element);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]