aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-02-22 03:00:55 +0100
committerfiaxh <git@lightrise.org>2020-02-22 03:00:55 +0100
commit420fcb909f4cc10a854fc640698bdea2fc48cad1 (patch)
tree0f84fc40a62ccb56b9ee3dd7ebbec58c7c2a605c /libdino/src
parentf282ef68a44d6b1924869160b4ddcb88d8d8e715 (diff)
downloaddino-420fcb909f4cc10a854fc640698bdea2fc48cad1.tar.gz
dino-420fcb909f4cc10a854fc640698bdea2fc48cad1.zip
Move widget insertion logic from ConversationTitlebar to controller
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) {