Fix build with new vala

https://bugzilla.gnome.org/show_bug.cgi?id=779264
This commit is contained in:
Rico Tzschichholz 2017-02-26 19:00:31 +01:00 committed by Michael James Gratton
parent 71ac4de367
commit d34f0e7bb0
2 changed files with 12 additions and 0 deletions

View file

@ -160,7 +160,11 @@ public class AccountDialogAccountListPane : AccountDialogPane {
if (iter == null)
return;
#if VALA_0_36
list_model.remove(ref iter);
#else
list_model.remove(iter);
#endif
}
private void on_account_changed(Object object, ParamSpec p) {

View file

@ -307,7 +307,11 @@ public class ConversationListStore : Gtk.ListStore {
if (last_email == null) {
debug("Cannot refresh conversation: last email is null");
#if VALA_0_36
remove(ref iter);
#else
remove(iter);
#endif
return;
}
@ -379,7 +383,11 @@ public class ConversationListStore : Gtk.ListStore {
private void remove_conversation(Geary.App.Conversation conversation) {
Gtk.TreeIter iter;
if (get_iter_for_conversation(conversation, out iter))
#if VALA_0_36
remove(ref iter);
#else
remove(iter);
#endif
row_map.remove(conversation);
}