diff options
Diffstat (limited to 'libdino')
-rw-r--r-- | libdino/src/plugin/registry.vala | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libdino/src/plugin/registry.vala b/libdino/src/plugin/registry.vala index 73c28a02..e3f73855 100644 --- a/libdino/src/plugin/registry.vala +++ b/libdino/src/plugin/registry.vala @@ -10,13 +10,7 @@ public class Registry { internal Gee.List<ConversationAdditionPopulator> conversation_addition_populators = new ArrayList<ConversationAdditionPopulator>(); internal Gee.List<NotificationPopulator> notification_populators = new ArrayList<NotificationPopulator>(); internal Gee.Collection<ConversationTitlebarEntry> conversation_titlebar_entries = new Gee.TreeSet<ConversationTitlebarEntry>((a, b) => { - if (a.order < b.order) { - return 1; - } else if (a.order > b.order) { - return -1; - } else { - return 0; - } + return (int)(a.order - b.order); }); public bool register_encryption_list_entry(EncryptionListEntry entry) { |