From a807ded65cd907e04bab7b8cd27b5702b157e3a2 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 26 Aug 2017 13:04:57 +0200 Subject: [PATCH] small fixes --- main/data/conversation_selector/view.ui | 4 ++-- main/data/dino.desktop | 3 ++- main/src/ui/conversation_selector/view.vala | 2 +- main/src/ui/conversation_summary/view.vala | 2 +- main/src/ui/unified_window.vala | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/main/data/conversation_selector/view.ui b/main/data/conversation_selector/view.ui index 5d8e2d69..365957a8 100644 --- a/main/data/conversation_selector/view.ui +++ b/main/data/conversation_selector/view.ui @@ -5,14 +5,14 @@ True vertical - + True - True True edit-find-symbolic Search + 10px True True diff --git a/main/data/dino.desktop b/main/data/dino.desktop index 924cc587..6e2d2016 100644 --- a/main/data/dino.desktop +++ b/main/data/dino.desktop @@ -9,4 +9,5 @@ StartupNotify=false Terminal=false Type=Application Categories=GTK;Network;Chat;InstantMessaging; -X-GNOME-UsesNotifications=true \ No newline at end of file +X-GNOME-UsesNotifications=true +MimeType=x-scheme-handler/xmpp; diff --git a/main/src/ui/conversation_selector/view.vala b/main/src/ui/conversation_selector/view.vala index 3ea3148d..fabf5229 100644 --- a/main/src/ui/conversation_selector/view.vala +++ b/main/src/ui/conversation_selector/view.vala @@ -11,7 +11,7 @@ public class View : Box { public List conversation_list; [GtkChild] public SearchEntry search_entry; - [GtkChild] public SearchBar search_bar; + [GtkChild] public Revealer search_revealer; [GtkChild] private ScrolledWindow scrolled; public View(StreamInteractor stream_interactor) { diff --git a/main/src/ui/conversation_summary/view.vala b/main/src/ui/conversation_summary/view.vala index 5b49f97e..693f7164 100644 --- a/main/src/ui/conversation_summary/view.vala +++ b/main/src/ui/conversation_summary/view.vala @@ -67,7 +67,7 @@ public class View : Box { ArrayList objects = new ArrayList(); Gee.List messages = stream_interactor.get_module(MessageStorage.IDENTITY).get_messages(conversation); if (messages.size > 0) { - earliest_message = messages[0]; + earliest_message = messages[messages.size -1]; objects.add_all(messages); } HashMap>? shows = stream_interactor.get_module(PresenceManager.IDENTITY).get_shows(conversation.counterpart, conversation.account); diff --git a/main/src/ui/unified_window.vala b/main/src/ui/unified_window.vala index e9c1a8e6..8244c67a 100644 --- a/main/src/ui/unified_window.vala +++ b/main/src/ui/unified_window.vala @@ -30,7 +30,7 @@ public class UnifiedWindow : Window { setup_unified(); setup_stack(); - conversation_list_titlebar.search_button.bind_property("active", filterable_conversation_list.search_bar, "search-mode-enabled", + conversation_list_titlebar.search_button.bind_property("active", filterable_conversation_list.search_revealer, "reveal-child", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL); paned.bind_property("position", headerbar_paned, "position", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL);