Fix several Gtk-CRITICALS (bug 737627).
Remove the custom_iter field since it was never assigned to and use null instead.
This commit is contained in:
parent
71f50772a7
commit
1f864b0ee2
1 changed files with 2 additions and 3 deletions
|
@ -49,7 +49,6 @@ public class Contacts.TypeSet : Object {
|
|||
|
||||
public Gtk.ListStore store;
|
||||
private TreeIter other_iter;
|
||||
private TreeIter custom_iter;
|
||||
|
||||
private TypeSet () {
|
||||
display_name_hash = new HashTable<unowned string, Data> (str_hash, str_equal);
|
||||
|
@ -69,7 +68,7 @@ public class Contacts.TypeSet : Object {
|
|||
|
||||
data.in_store = true;
|
||||
if (is_custom)
|
||||
store.insert_before (out data.iter, custom_iter);
|
||||
store.insert_before (out data.iter, null);
|
||||
else
|
||||
store.append (out data.iter);
|
||||
|
||||
|
@ -135,7 +134,7 @@ public class Contacts.TypeSet : Object {
|
|||
return;
|
||||
}
|
||||
|
||||
store.insert_before (out iter, custom_iter);
|
||||
store.insert_before (out iter, null);
|
||||
store.set (iter, 0, label, 1, null);
|
||||
custom_hash.insert (label, iter);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue