tools: Fix ambiguous references to HashTable
authorPhilip Withnall <philip@tecnocode.co.uk>
Tue, 12 Feb 2013 11:26:50 +0000 (11:26 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 12 Feb 2013 11:26:50 +0000 (11:26 +0000)
Could have been GLib.HashTable or Xml.HashTable. Caught by Jenkins:
https://jenkins.qa.ubuntu.com/view/Raring/view/JHBuild%20Gnome/job/jhbuild-amd64-folks/114/

On further investigation, this was caused by changes to the libxml2
bindings in Vala. Compilation of folks against Vala master now
succeeds, so there shouldn’t be any more HashTable failures.

tools/import-pidgin.vala

index 2240038..f09e693 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (C) 2010 Collabora Ltd.
+ * Copyright (C) 2013 Philip Withnall
  *
  * This library is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -223,8 +224,7 @@ public class Folks.Importers.Pidgin : Folks.Importer
         }
 
       /* Create or update the relevant Persona */
-      HashTable<string, Value?> details =
-          new HashTable<string, Value?> (str_hash, str_equal);
+      var details = new GLib.HashTable<string, Value?> (str_hash, str_equal);
       Value im_addresses_value = Value (typeof (MultiMap));
       im_addresses_value.set_object (im_addresses);
       details.insert ("im-addresses", im_addresses_value);