diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-03 19:22:45 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-03 19:22:45 +0100 |
commit | a9ae79878e5289d198af47fc4e9e2149450b2502 (patch) | |
tree | 765d87c0031a07aeb81c30f98862b54dc05b2dcb /client | |
parent | 56bc45ce4d07a7a9a415e9dc8ad2f7c3f3c9e48d (diff) | |
download | dino-a9ae79878e5289d198af47fc4e9e2149450b2502.tar.gz dino-a9ae79878e5289d198af47fc4e9e2149450b2502.zip |
Use Window instead of ApplicationWindow for main view
Diffstat (limited to 'client')
-rw-r--r-- | client/data/menu_add.ui | 4 | ||||
-rw-r--r-- | client/src/service/presence_manager.vala | 2 | ||||
-rw-r--r-- | client/src/ui/conversation_list_titlebar.vala | 8 | ||||
-rw-r--r-- | client/src/ui/unified_window.vala | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/client/data/menu_add.ui b/client/data/menu_add.ui index 19f46fdd..3b2c4c4a 100644 --- a/client/data/menu_add.ui +++ b/client/data/menu_add.ui @@ -2,13 +2,13 @@ <menu id="menu_add"> <section> <item> - <attribute name="action">win.add_chat</attribute> + <attribute name="action">app.add_chat</attribute> <attribute name="label" translatable="yes">Start Chat</attribute> </item> </section> <section> <item> - <attribute name="action">win.add_conference</attribute> + <attribute name="action">app.add_conference</attribute> <attribute name="label" translatable="yes">Join Conference</attribute> </item> </section> diff --git a/client/src/service/presence_manager.vala b/client/src/service/presence_manager.vala index 53bdf4ce..b89c6570 100644 --- a/client/src/service/presence_manager.vala +++ b/client/src/service/presence_manager.vala @@ -42,7 +42,7 @@ public class PresenceManager : StreamInteractionModule, Object { public ArrayList<Jid>? get_full_jids(Jid jid, Account account) { Core.XmppStream? stream = stream_interactor.get_stream(account); if (stream != null) { - ArrayList<string> resources = Xmpp.Presence.Flag.get_flag(stream).get_resources(jid.bare_jid.to_string()); + Gee.List<string> resources = Xmpp.Presence.Flag.get_flag(stream).get_resources(jid.bare_jid.to_string()); if (resources == null) { return null; } diff --git a/client/src/ui/conversation_list_titlebar.vala b/client/src/ui/conversation_list_titlebar.vala index 4835ec66..4e465532 100644 --- a/client/src/ui/conversation_list_titlebar.vala +++ b/client/src/ui/conversation_list_titlebar.vala @@ -15,12 +15,12 @@ public class Dino.Ui.ConversationListTitlebar : Gtk.HeaderBar { private StreamInteractor stream_interactor; - public ConversationListTitlebar(ApplicationWindow application, StreamInteractor stream_interactor) { + public ConversationListTitlebar(Window application, StreamInteractor stream_interactor) { this.stream_interactor = stream_interactor; create_add_menu(application); } - private void create_add_menu(ApplicationWindow application) { + private void create_add_menu(Window window) { SimpleAction contacts_action = new SimpleAction("add_chat", null); contacts_action.activate.connect(() => { AddConversation.Chat.Dialog add_chat_dialog = new AddConversation.Chat.Dialog(stream_interactor); @@ -28,7 +28,7 @@ public class Dino.Ui.ConversationListTitlebar : Gtk.HeaderBar { add_chat_dialog.conversation_opened.connect((conversation) => conversation_opened(conversation)); add_chat_dialog.show(); }); - application.add_action(contacts_action); + window.get_application().add_action(contacts_action); SimpleAction conference_action = new SimpleAction("add_conference", null); conference_action.activate.connect(() => { @@ -37,7 +37,7 @@ public class Dino.Ui.ConversationListTitlebar : Gtk.HeaderBar { add_conference_dialog.conversation_opened.connect((conversation) => conversation_opened(conversation)); add_conference_dialog.show(); }); - application.add_action(conference_action); + window.get_application().add_action(conference_action); Builder builder = new Builder.from_resource("/org/dino-im/menu_add.ui"); MenuModel menu = builder.get_object("menu_add") as MenuModel; diff --git a/client/src/ui/unified_window.vala b/client/src/ui/unified_window.vala index 9d5f1dfd..8a9500e9 100644 --- a/client/src/ui/unified_window.vala +++ b/client/src/ui/unified_window.vala @@ -2,7 +2,7 @@ using Gtk; using Dino.Entities; -public class Dino.Ui.UnifiedWindow : ApplicationWindow { +public class Dino.Ui.UnifiedWindow : Window { public ChatInput chat_input; public ConversationListTitlebar conversation_list_titlebar; public ConversationSelector.View filterable_conversation_list; |