diff --git a/src/contacts-sorted.vala b/src/contacts-sorted.vala index 49f097c..c786820 100644 --- a/src/contacts-sorted.vala +++ b/src/contacts-sorted.vala @@ -17,7 +17,6 @@ */ using Gtk; -using Gee; /* Requriements: + sort @@ -58,7 +57,7 @@ public class Contacts.Sorted : Container { } Sequence children; - HashMap child_hash; + HashTable child_hash; CompareDataFunc? sort_func; FilterFunc? filter_func; UpdateSeparatorFunc? update_separator_func; @@ -79,7 +78,7 @@ public class Contacts.Sorted : Container { selection_mode = SelectionMode.SINGLE; children = new Sequence(); - child_hash = new HashMap (); + child_hash = new HashTable (GLib.direct_hash, GLib.direct_equal); } [Signal (action=true)] @@ -756,7 +755,7 @@ public class Contacts.Sorted : Container { bool was_visible = widget.get_visible (); widget.unparent (); - child_hash.unset (widget); + child_hash.remove (widget); children.remove (info.iter); update_separator (next);