From 1d0745177e7a116455811dfd26e07b848cb89b75 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 6 Nov 2017 01:02:13 +0100 Subject: Replace deprecated function usages --- main/src/ui/add_conversation/add_groupchat_dialog.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main/src/ui/add_conversation') diff --git a/main/src/ui/add_conversation/add_groupchat_dialog.vala b/main/src/ui/add_conversation/add_groupchat_dialog.vala index 274ab6f9..b18e9bbb 100644 --- a/main/src/ui/add_conversation/add_groupchat_dialog.vala +++ b/main/src/ui/add_conversation/add_groupchat_dialog.vala @@ -18,7 +18,7 @@ protected class AddGroupchatDialog : Gtk.Dialog { [GtkChild] private Entry nick_entry; private StreamInteractor stream_interactor; - private Xmpp.Xep.Bookmarks.Conference? edit_confrence = null; + private Xmpp.Xep.Bookmarks.Conference? edit_conference = null; private bool alias_entry_changed = false; public AddGroupchatDialog(StreamInteractor stream_interactor) { @@ -37,7 +37,7 @@ protected class AddGroupchatDialog : Gtk.Dialog { public AddGroupchatDialog.for_conference(StreamInteractor stream_interactor, Account account, Xmpp.Xep.Bookmarks.Conference conference) { this(stream_interactor); - edit_confrence = conference; + edit_conference = conference; ok_button.label = _("Save"); ok_button.sensitive = true; accounts_stack.set_visible_child_name("label"); @@ -67,10 +67,10 @@ protected class AddGroupchatDialog : Gtk.Dialog { Xmpp.Xep.Bookmarks.Conference conference = new Xmpp.Xep.Bookmarks.Conference(jid_entry.text); conference.nick = nick_entry.text != "" ? nick_entry.text : null; conference.name = alias_entry.text; - if (edit_confrence == null) { + if (edit_conference == null) { stream_interactor.get_module(MucManager.IDENTITY).add_bookmark(account_combobox.selected, conference); } else { - stream_interactor.get_module(MucManager.IDENTITY).replace_bookmark(account_combobox.selected, edit_confrence, conference); + stream_interactor.get_module(MucManager.IDENTITY).replace_bookmark(account_combobox.selected, edit_conference, conference); } close(); } -- cgit v1.2.3-70-g09d2