Commit 80f317be authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

Revert "Port folks to libgee 0.8."

This reverts commit e069bbe5.
parent 19f77e2a
......@@ -491,8 +491,8 @@ public class Edsf.Persona : Folks.Persona,
private HashMultiMap<string, ImFieldDetails> _im_addresses =
new HashMultiMap<string, ImFieldDetails> (null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) ImFieldDetails.hash,
(GLib.EqualFunc) ImFieldDetails.equal);
/**
* {@inheritDoc}
......@@ -785,37 +785,37 @@ public class Edsf.Persona : Folks.Persona,
this._gender = Gender.UNSPECIFIED;
this._phone_numbers = new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
this._phone_numbers_ro = this._phone_numbers.read_only_view;
this._email_addresses = new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,
(GLib.EqualFunc) EmailFieldDetails.equal);
this._email_addresses_ro = this._email_addresses.read_only_view;
this._notes = new HashSet<NoteFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) NoteFieldDetails.hash,
(GLib.EqualFunc) NoteFieldDetails.equal);
this._notes_ro = this._notes.read_only_view;
this._urls = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
this._urls_ro = this._urls.read_only_view;
this._postal_addresses = new HashSet<PostalAddressFieldDetails> (
AbstractFieldDetails<PostalAddress>.hash_static,
AbstractFieldDetails<PostalAddress>.equal_static);
(GLib.HashFunc) PostalAddressFieldDetails.hash,
(GLib.EqualFunc) PostalAddressFieldDetails.equal);
this._postal_addresses_ro = this._postal_addresses.read_only_view;
this._local_ids = new HashSet<string> ();
this._local_ids_ro = this._local_ids.read_only_view;
this._web_service_addresses =
new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
this._groups = new HashSet<string> ();
this._groups_ro = this._groups.read_only_view;
this._roles = new HashSet<RoleFieldDetails> (
AbstractFieldDetails<Role>.hash_static,
AbstractFieldDetails<Role>.equal_static);
(GLib.HashFunc) RoleFieldDetails.hash,
(GLib.EqualFunc) RoleFieldDetails.equal);
this._roles_ro = this._roles.read_only_view;
this._anti_links = new HashSet<string> ();
this._anti_links_ro = this._anti_links.read_only_view;
......@@ -1002,8 +1002,8 @@ public class Edsf.Persona : Folks.Persona,
private void _update_roles ()
{
var new_roles = new HashSet<RoleFieldDetails> (
AbstractFieldDetails<Role>.hash_static,
AbstractFieldDetails<Role>.equal_static);
(GLib.HashFunc) RoleFieldDetails.hash,
(GLib.EqualFunc) RoleFieldDetails.equal);
var default_role_fd = this._get_default_role ();
if (default_role_fd != null)
......@@ -1123,8 +1123,8 @@ public class Edsf.Persona : Folks.Persona,
{
var new_services = new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
var services = this.contact.get_attribute ("X-FOLKS-WEB-SERVICES-IDS");
if (services != null)
......@@ -1156,8 +1156,8 @@ public class Edsf.Persona : Folks.Persona,
private void _update_emails ()
{
var new_email_addresses = new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,
(GLib.EqualFunc) EmailFieldDetails.equal);
var attrs = this.contact.get_attributes (E.ContactField.EMAIL);
foreach (var attr in attrs)
......@@ -1185,8 +1185,8 @@ public class Edsf.Persona : Folks.Persona,
private void _update_notes ()
{
var new_notes = new HashSet<NoteFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) NoteFieldDetails.hash,
(GLib.EqualFunc) NoteFieldDetails.equal);
var n = this._get_property<string> ("note");
if (n != null && n != "")
......@@ -1393,8 +1393,8 @@ public class Edsf.Persona : Folks.Persona,
{
var im_eds_map = this._get_im_eds_map ();
var new_im_addresses = new HashMultiMap<string, ImFieldDetails> (null,
null, AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
null, (GLib.HashFunc) ImFieldDetails.hash,
(GLib.EqualFunc) ImFieldDetails.equal);
foreach (var im_proto in im_eds_map.get_keys ())
{
......@@ -1635,8 +1635,8 @@ public class Edsf.Persona : Folks.Persona,
private void _update_phones ()
{
var new_phone_numbers = new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
var attrs = this.contact.get_attributes (E.ContactField.TEL);
foreach (var attr in attrs)
......@@ -1724,8 +1724,8 @@ public class Edsf.Persona : Folks.Persona,
private void _update_addresses ()
{
var new_postal_addresses = new HashSet<PostalAddressFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
var attrs = this.contact.get_attributes (E.ContactField.ADDRESS);
foreach (unowned E.VCardAttribute attr in attrs)
......
......@@ -146,8 +146,8 @@ public class Folks.Backends.Kf.Persona : Folks.Persona,
* table of them to set as the new property value */
var new_im_addresses = new HashMultiMap<string, ImFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) ImFieldDetails.hash,
(GLib.EqualFunc) ImFieldDetails.equal);
foreach (var protocol2 in im_addresses.get_keys ())
{
......@@ -233,8 +233,8 @@ public class Folks.Backends.Kf.Persona : Folks.Persona,
var new_web_service_addresses =
new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
foreach (var web_service2 in web_service_addresses.get_keys ())
{
......@@ -327,13 +327,12 @@ public class Folks.Backends.Kf.Persona : Folks.Persona,
this.iid, this.display_id);
this._im_addresses = new HashMultiMap<string, ImFieldDetails> (
null, null, AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
null, null, ImFieldDetails.hash, (EqualFunc) ImFieldDetails.equal);
this._web_service_addresses =
new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
this._anti_links = new HashSet<string> ();
this._anti_links_ro = this._anti_links.read_only_view;
......
......@@ -148,14 +148,13 @@ public class Swf.Persona : Folks.Persona,
private HashMultiMap<string, ImFieldDetails> _im_addresses =
new HashMultiMap<string, ImFieldDetails> (null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
ImFieldDetails.hash, (EqualFunc) ImFieldDetails.equal);
private HashMultiMap<string, WebServiceFieldDetails> _web_service_addresses =
new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
/**
* {@inheritDoc}
......@@ -389,8 +388,8 @@ public class Swf.Persona : Folks.Persona,
}
var urls = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
var website = contact.get_value ("url");
if (website != null)
......
......@@ -320,14 +320,14 @@ internal class Tpf.PersonaStoreCache : Folks.ObjectCache<Tpf.Persona>
}
var email_address_set = new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,
(GLib.EqualFunc) EmailFieldDetails.equal);
var phone_number_set = new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
var url_set = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
if (object_version == 2)
{
......
......@@ -348,8 +348,8 @@ public class Tpf.Persona : Folks.Persona,
private HashSet<EmailFieldDetails> _email_addresses =
new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,
(GLib.EqualFunc) EmailFieldDetails.equal);
private Set<EmailFieldDetails> _email_addresses_ro;
/**
......@@ -378,8 +378,8 @@ public class Tpf.Persona : Folks.Persona,
private HashMultiMap<string, ImFieldDetails> _im_addresses =
new HashMultiMap<string, ImFieldDetails> (null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) ImFieldDetails.hash,
(GLib.EqualFunc) ImFieldDetails.equal);
/**
* A mapping of IM protocol to an (unordered) set of IM addresses.
......@@ -598,8 +598,8 @@ public class Tpf.Persona : Folks.Persona,
private HashSet<PhoneFieldDetails> _phone_numbers =
new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
private Set<PhoneFieldDetails> _phone_numbers_ro;
/**
......@@ -627,8 +627,8 @@ public class Tpf.Persona : Folks.Persona,
}
private HashSet<UrlFieldDetails> _urls = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
private Set<UrlFieldDetails> _urls_ro;
/**
......@@ -855,14 +855,14 @@ public class Tpf.Persona : Folks.Persona,
var new_birthday_str = "";
var new_full_name = "";
var new_email_addresses = new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,
(GLib.EqualFunc) EmailFieldDetails.equal);
var new_phone_numbers = new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
var new_urls = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
var contact_info = this.contact.get_contact_info ();
foreach (var info in contact_info)
......
......@@ -823,8 +823,8 @@ public class Trf.PersonaStore : Folks.PersonaStore
{
var ret = new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
var services = ws_addrs.split (";");
foreach (var service_line in services)
......
......@@ -378,8 +378,8 @@ public class Trf.Persona : Folks.Persona,
private HashMultiMap<string, ImFieldDetails> _im_addresses =
new HashMultiMap<string, ImFieldDetails> (null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) ImFieldDetails.hash,
(GLib.EqualFunc) ImFieldDetails.equal);
/**
* {@inheritDoc}
......@@ -468,8 +468,8 @@ public class Trf.Persona : Folks.Persona,
private HashMultiMap<string, WebServiceFieldDetails> _web_service_addresses =
new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
/**
* {@inheritDoc}
......@@ -558,28 +558,28 @@ public class Trf.Persona : Folks.Persona,
this._full_name = "";
this._structured_name = null;
this._phone_numbers = new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
this._phone_numbers_ro = this._phone_numbers.read_only_view;
this._email_addresses = new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,
(GLib.EqualFunc) EmailFieldDetails.equal);
this._email_addresses_ro = this._email_addresses.read_only_view;
this._roles = new HashSet<RoleFieldDetails> (
AbstractFieldDetails<Role>.hash_static,
AbstractFieldDetails<Role>.equal_static);
(GLib.HashFunc) RoleFieldDetails.hash,
(GLib.EqualFunc) RoleFieldDetails.equal);
this._roles_ro = this._roles.read_only_view;
this._notes = new HashSet<NoteFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) NoteFieldDetails.hash,
(GLib.EqualFunc) NoteFieldDetails.equal);
this._notes_ro = this._notes.read_only_view;
this._urls = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
this._urls_ro = this._urls.read_only_view;
this._postal_addresses = new HashSet<PostalAddressFieldDetails> (
AbstractFieldDetails<PostalAddress>.hash_static,
AbstractFieldDetails<PostalAddress>.equal_static);
(GLib.HashFunc) PostalAddressFieldDetails.hash,
(GLib.EqualFunc) PostalAddressFieldDetails.equal);
this._postal_addresses_ro = this._postal_addresses.read_only_view;
this._local_ids = new HashSet<string> ();
this._local_ids_ro = this._local_ids.read_only_view;
......@@ -804,8 +804,8 @@ public class Trf.Persona : Folks.Persona,
}
var postal_addresses = new HashSet<PostalAddressFieldDetails> (
AbstractFieldDetails<PostalAddress>.hash_static,
AbstractFieldDetails<PostalAddress>.equal_static);
(GLib.HashFunc) PostalAddressFieldDetails.hash,
(GLib.EqualFunc) PostalAddressFieldDetails.equal);
string[] addresses_a = postal_field.split ("\n");
......@@ -984,8 +984,8 @@ public class Trf.Persona : Folks.Persona,
}
HashSet<RoleFieldDetails> role_fds = new HashSet<RoleFieldDetails> (
AbstractFieldDetails<Role>.hash_static,
AbstractFieldDetails<Role>.equal_static);
(GLib.HashFunc) RoleFieldDetails.hash,
(GLib.EqualFunc) RoleFieldDetails.equal);
string[] roles_a = roles_field.split ("\n");
......@@ -1221,8 +1221,8 @@ public class Trf.Persona : Folks.Persona,
}
var phones = new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
string[] phones_a = phones_field.split ("\n");
foreach (var p in phones_a)
......@@ -1347,8 +1347,8 @@ public class Trf.Persona : Folks.Persona,
}
var email_addresses = new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,
(GLib.EqualFunc) EmailFieldDetails.equal);
string[] emails_a = emails_field.split (",");
foreach (var e in emails_a)
......@@ -1372,8 +1372,8 @@ public class Trf.Persona : Folks.Persona,
private void _update_urls ()
{
var url_fds = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
var _urls_field = this._cursor.get_string (Trf.Fields.URLS).dup ();
if (_urls_field == null)
......
......@@ -276,32 +276,6 @@ public abstract class Folks.AbstractFieldDetails<T> : Object
}
/**
* Same as {@link AbstractFieldDetails.equal}, but static,
* so we can use libgee 0.8 without an api break.
*
* See [[https://bugzilla.gnome.org/show_bug.cgi?id=673918|673918]]"
* This can and should be removed next time we break the api.
* Note: This uses Gee.EqualDataFunc signature, to avoid having to cast.
*
* @param left one {@link AbstractFieldDetails} to compare
* @param right another {@link AbstractFieldDetails} to compare
*
* @return whether the elemants are equal
*
* @since UNRELEASED
*/
public static bool equal_static (void* left,
void* right)
{
GLib.return_val_if_fail (left != null, false);
GLib.return_val_if_fail (right != null, false);
AbstractFieldDetails left_details = (AbstractFieldDetails) left;
AbstractFieldDetails right_details = (AbstractFieldDetails) right;
return left_details.equal (right_details);
}
/**
* An equality function which only considers parameters.
*
* This function compares:
......@@ -431,26 +405,4 @@ public abstract class Folks.AbstractFieldDetails<T> : Object
return hash_func (this.value);
}
/**
* Same as {@link AbstractFieldDetails.hash}, but static,
* so we can use libgee 0.8 without an api break.
*
* See [[https://bugzilla.gnome.org/show_bug.cgi?id=673918|673918]]
* This can and should be removed next time we break the api.
* Note: This uses Gee.HashDataFunc signature, to avoit having to cast.
*
* @param value the value to hash
*
* @return the hash value
*
* @since UNRELEASED
*/
public static uint hash_static (void* value)
{
GLib.return_val_if_fail (value != null, 0);
AbstractFieldDetails details = (AbstractFieldDetails) value;
return details.hash ();
}
}
......@@ -146,9 +146,10 @@ public class Folks.BackendStore : Object {
this._debug.print_status.connect (this._debug_print_status);
this._modules = new HashMap<string,unowned Module> ();
this._backend_hash = new HashMap<string,Backend> ();
this._prepared_backends = new HashMap<string,Backend> ();
this._modules = new HashMap<string,unowned Module> (str_hash, str_equal);
this._backend_hash = new HashMap<string,Backend> (str_hash, str_equal);
this._prepared_backends = new HashMap<string,Backend> (str_hash,
str_equal);
this._prepared_backends_ro = this._prepared_backends.read_only_view;
}
......@@ -593,7 +594,7 @@ public class Folks.BackendStore : Object {
return null;
}
var modules_final = new HashMap<string, File> ();
var modules_final = new HashMap<string, File> (str_hash, str_equal);
foreach (var info in infos)
{
......
......@@ -236,7 +236,7 @@ public class Folks.Debug : Object
lock (retval._domains)
{
retval._all = false;
retval._domains = new HashSet<string> ();
retval._domains = new HashSet<string> (str_hash, str_equal);
if (debug_flags != null && debug_flags != "")
{
......
......@@ -1903,13 +1903,13 @@ public class Folks.IndividualAggregator : Object
/* `protocols_addrs_set` will be passed to the new Kf.Persona */
var protocols_addrs_set = new HashMultiMap<string, ImFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) ImFieldDetails.hash,
(GLib.EqualFunc) ImFieldDetails.equal);
var web_service_addrs_set =
new HashMultiMap<string, WebServiceFieldDetails> (
null, null,
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) WebServiceFieldDetails.hash,
(GLib.EqualFunc) WebServiceFieldDetails.equal);
/* List of local_ids */
var local_ids = new Gee.HashSet<string> ();
......
......@@ -102,7 +102,7 @@ public class Folks.Individual : Object,
{
/* Stores the Personas contained in this Individual. */
private HashSet<Persona> _persona_set =
new HashSet<Persona> ();
new HashSet<Persona> (direct_hash, direct_equal);
/* Read-only view of the above set */
private Set<Persona> _persona_set_ro;
/* Mapping from PersonaStore -> number of Personas from that store contained
......@@ -470,8 +470,8 @@ public class Folks.Individual : Object,
}
private HashSet<UrlFieldDetails> _urls = new HashSet<UrlFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) UrlFieldDetails.hash,
(GLib.EqualFunc) UrlFieldDetails.equal);
private Set<UrlFieldDetails> _urls_ro;
/**
......@@ -486,8 +486,8 @@ public class Folks.Individual : Object,
private HashSet<PhoneFieldDetails> _phone_numbers =
new HashSet<PhoneFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) PhoneFieldDetails.hash,
(GLib.EqualFunc) PhoneFieldDetails.equal);
private Set<PhoneFieldDetails> _phone_numbers_ro;
/**
......@@ -502,8 +502,8 @@ public class Folks.Individual : Object,
private HashSet<EmailFieldDetails> _email_addresses =
new HashSet<EmailFieldDetails> (
AbstractFieldDetails<string>.hash_static,
AbstractFieldDetails<string>.equal_static);
(GLib.HashFunc) EmailFieldDetails.hash,