Don't (expicitly) use deprecated Gee methods.

This commit is contained in:
Michael James Gratton 2017-03-04 10:23:20 +11:00
parent 84f669bc3f
commit 1cb8b77b48
4 changed files with 4 additions and 4 deletions

View file

@ -389,7 +389,7 @@ public class ConversationListStore : Gtk.ListStore {
remove(iter);
#endif
row_map.remove(conversation);
row_map.unset(conversation);
}
private bool add_conversation(Geary.App.Conversation conversation) {

View file

@ -485,7 +485,7 @@ public class ConversationListBox : Gtk.ListBox {
if (this.cancellable.is_cancelled()) {
break;
}
if (!this.email_rows.contains(full_email.id)) {
if (!(full_email.id in this.email_rows)) {
EmailRow row = add_email(full_email);
if (row.is_expanded &&
(first_expanded_row == null ||

View file

@ -101,7 +101,7 @@ public class ConversationMessage : Gtk.Grid {
}
public bool highlight_search_term(string term) {
bool found = this.search_value.contains(term);
bool found = term in this.search_value;
if (found) {
get_style_context().add_class(MATCH_CLASS);
} else {

View file

@ -198,7 +198,7 @@ public class Geary.RFC822.Message : BaseObject {
}
// Don't need to assign a CID to this file, so
// don't process it below any further.
inline_files.remove(cid);
inline_files.unset(cid);
}
}