diff options
author | fiaxh <git@lightrise.org> | 2019-04-12 16:24:43 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-04-14 09:46:54 +0200 |
commit | d9e45071d0d3cd5a7a162908267c98c6366038bf (patch) | |
tree | 1d68dcd4010b5c057b1d862f9ece8013212c2575 /main/src/ui/unified_window.vala | |
parent | 27fe07c3b41a53a276fb5f6a71c4c97cb0279170 (diff) | |
download | dino-d9e45071d0d3cd5a7a162908267c98c6366038bf.tar.gz dino-d9e45071d0d3cd5a7a162908267c98c6366038bf.zip |
Only use UI data for active converations cycling, clean up ConversationSelector
Diffstat (limited to 'main/src/ui/unified_window.vala')
-rw-r--r-- | main/src/ui/unified_window.vala | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/src/ui/unified_window.vala b/main/src/ui/unified_window.vala index 123d3efb..38a95091 100644 --- a/main/src/ui/unified_window.vala +++ b/main/src/ui/unified_window.vala @@ -43,7 +43,7 @@ public class UnifiedWindow : Gtk.Window { public ChatInput.View chat_input; public ConversationListTitlebar conversation_list_titlebar; public ConversationListTitlebarCsd conversation_list_titlebar_csd; - public ConversationSelector.View filterable_conversation_list; + public ConversationSelector.List filterable_conversation_list; public ConversationSummary.ConversationView conversation_frame; public ConversationTitlebar conversation_titlebar; public ConversationTitlebarCsd conversation_titlebar_csd; @@ -88,8 +88,6 @@ public class UnifiedWindow : Gtk.Window { if (this.conversation == null || !this.conversation.equals(conversation)) { this.conversation = conversation; conversation_selected(conversation); - - } } @@ -99,7 +97,7 @@ public class UnifiedWindow : Gtk.Window { box.add(paned); chat_input = ((ChatInput.View) builder.get_object("chat_input")).init(stream_interactor); conversation_frame = ((ConversationSummary.ConversationView) builder.get_object("conversation_frame")).init(stream_interactor); - filterable_conversation_list = ((ConversationSelector.View) builder.get_object("conversation_list")).init(stream_interactor); + filterable_conversation_list = ((ConversationSelector.List) builder.get_object("conversation_list")).init(stream_interactor); goto_end_revealer = (Revealer) builder.get_object("goto_end_revealer"); goto_end_button = (Button) builder.get_object("goto_end_button"); search_box = ((GlobalSearch) builder.get_object("search_box")).init(stream_interactor); @@ -167,6 +165,10 @@ public class UnifiedWindow : Gtk.Window { } } } + + public void loop_conversations(bool backwards) { + filterable_conversation_list.loop_conversations(backwards); + } } public class WelcomePlceholder : UnifiedWindowPlaceholder { |