From ef0483765a0fd567f25b1f0af6df04e8973e5624 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 20 Mar 2017 19:27:39 +0100 Subject: Small bug fixes and compatibility with Vala 0.36 --- main/src/ui/add_conversation/conference/dialog.vala | 8 ++++---- main/src/ui/conversation_summary/conversation_item.vala | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'main/src') diff --git a/main/src/ui/add_conversation/conference/dialog.vala b/main/src/ui/add_conversation/conference/dialog.vala index d766a5a8..c035c11d 100644 --- a/main/src/ui/add_conversation/conference/dialog.vala +++ b/main/src/ui/add_conversation/conference/dialog.vala @@ -41,7 +41,7 @@ public class Dialog : Gtk.Dialog { if (cancel_image.get_parent() != null) cancel_button.remove(cancel_image); cancel_button.add(cancel_label); cancel_button.clicked.disconnect(show_jid_add_view); - cancel_button.clicked.connect(close); + cancel_button.clicked.connect(on_cancel); ok_button.label = "Next"; ok_button.sensitive = select_fragment.done; ok_button.clicked.disconnect(on_ok_button_clicked); @@ -55,7 +55,7 @@ public class Dialog : Gtk.Dialog { private void show_conference_details_view() { if (cancel_label.get_parent() != null) cancel_button.remove(cancel_label); cancel_button.add(cancel_image); - cancel_button.clicked.disconnect(close); + cancel_button.clicked.disconnect(on_cancel); cancel_button.clicked.connect(show_jid_add_view); ok_button.label = "Join"; ok_button.sensitive = details_fragment.done; @@ -143,8 +143,8 @@ public class Dialog : Gtk.Dialog { close(); } - private void close() { - base.close(); + private void on_cancel() { + close(); } private void animate_window_resize() { diff --git a/main/src/ui/conversation_summary/conversation_item.vala b/main/src/ui/conversation_summary/conversation_item.vala index fa91f78e..a99025ab 100644 --- a/main/src/ui/conversation_summary/conversation_item.vala +++ b/main/src/ui/conversation_summary/conversation_item.vala @@ -25,7 +25,7 @@ public interface ConversationItem : Gtk.Widget { case MessageKind.ME_COMMAND: return new SlashMeItem(stream_interactor, conversation, message); } - return null; + assert_not_reached(); } } -- cgit v1.2.3-70-g09d2