aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/plugin/registry.vala8
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) {