From 2804799f61eb4c68c5cf88b9996d13a81fe6317d Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 13 Mar 2017 15:34:17 +0100 Subject: [PATCH] Reduce GTK dependency to 3.16, fix dark theme --- libdino/src/service/presence_manager.vala | 5 +-- main/CMakeLists.txt | 1 - .../add_conversation/add_contact_dialog.ui | 1 - .../add_conversation/add_groupchat_dialog.ui | 1 - .../conference_details_fragment.ui | 1 - main/data/add_conversation/list_row.ui | 1 - .../add_conversation/select_jid_fragment.ui | 1 - main/data/conversation_list_titlebar.ui | 1 - .../conversation_selector/chat_row_tooltip.ui | 1 - .../conversation_selector/conversation_row.ui | 1 - main/data/conversation_selector/view.ui | 1 - .../data/conversation_summary/message_item.ui | 1 - main/data/conversation_summary/view.ui | 3 +- main/data/conversation_titlebar.ui | 1 - main/data/manage_accounts/account_row.ui | 1 - .../manage_accounts/add_account_dialog.ui | 1 - main/data/menu_encryption.ui | 2 +- main/data/occupant_list.ui | 1 - main/data/occupant_list_item.ui | 1 - main/data/settings_dialog.ui | 1 - main/data/style.css | 3 -- main/data/unified_window.ui | 1 - main/src/ui/application.vala | 13 ------- .../merged_message_item.vala | 35 +++++++++++++++++-- main/src/ui/conversation_summary/view.vala | 20 +++++++++-- main/src/ui/util.vala | 14 +++++--- 26 files changed, 65 insertions(+), 48 deletions(-) delete mode 100644 main/data/style.css diff --git a/libdino/src/service/presence_manager.vala b/libdino/src/service/presence_manager.vala index fd78496f..6a8d77aa 100644 --- a/libdino/src/service/presence_manager.vala +++ b/libdino/src/service/presence_manager.vala @@ -47,9 +47,10 @@ public class PresenceManager : StreamInteractionModule, Object { return null; } ArrayList ret = new ArrayList(Jid.equals_func); - foreach (string resource in resources) { + resources.foreach((resource) => { ret.add(new Jid(resource)); - } + return true; + }); return ret; } return null; diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 839d5c50..ef78f446 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -44,7 +44,6 @@ set(RESOURCE_LIST menu_encryption.ui occupant_list.ui occupant_list_item.ui - style.css settings_dialog.ui unified_window.ui ) diff --git a/main/data/add_conversation/add_contact_dialog.ui b/main/data/add_conversation/add_contact_dialog.ui index 58c13e7f..1ac2745c 100644 --- a/main/data/add_conversation/add_contact_dialog.ui +++ b/main/data/add_conversation/add_contact_dialog.ui @@ -1,6 +1,5 @@ -