aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/add_conversation/conference_details_fragment.vala
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/add_conversation/conference_details_fragment.vala')
-rw-r--r--main/src/ui/add_conversation/conference_details_fragment.vala20
1 files changed, 14 insertions, 6 deletions
diff --git a/main/src/ui/add_conversation/conference_details_fragment.vala b/main/src/ui/add_conversation/conference_details_fragment.vala
index 945f743a..5d0ebd9b 100644
--- a/main/src/ui/add_conversation/conference_details_fragment.vala
+++ b/main/src/ui/add_conversation/conference_details_fragment.vala
@@ -80,9 +80,21 @@ protected class ConferenceDetailsFragment : Box {
[GtkChild] private Label notification_label;
private StreamInteractor stream_interactor;
- private Button ok_button;
+ private Button ok_button_;
+ public Button ok_button {
+ get { return ok_button_; }
+ set {
+ if (value != null) {
+ value.clicked.connect(() => {
+ ok_button.label = _("Joining…");
+ ok_button.sensitive = false;
+ });
+ ok_button_ = value;
+ }
+ }
+ }
- public ConferenceDetailsFragment(StreamInteractor stream_interactor, Button ok_button) {
+ public ConferenceDetailsFragment(StreamInteractor stream_interactor) {
this.stream_interactor = stream_interactor;
this.ok_button = ok_button;
@@ -104,10 +116,6 @@ protected class ConferenceDetailsFragment : Box {
stream_interactor.get_module(MucManager.IDENTITY).enter_error.connect(on_enter_error);
notification_button.clicked.connect(() => { notification_revealer.set_reveal_child(false); });
- ok_button.clicked.connect(() => {
- ok_button.label = _("Joining…");
- ok_button.sensitive = false;
- });
clear();
}