diff options
author | fiaxh <git@lightrise.org> | 2019-06-06 16:55:50 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-06-22 00:56:50 +0200 |
commit | 24f525628bd58c09f2dd6d32f625a413bef2a27e (patch) | |
tree | 9440d55d05f5e3f99fa332d493b6c0da53456407 /main/src/ui/add_conversation/conference_details_fragment.vala | |
parent | 2fb51df8a217a8dc11e10c38e06851f7b6263a3f (diff) | |
download | dino-24f525628bd58c09f2dd6d32f625a413bef2a27e.tar.gz dino-24f525628bd58c09f2dd6d32f625a413bef2a27e.zip |
Add non-CSD alternative for add chat + join channel
Diffstat (limited to 'main/src/ui/add_conversation/conference_details_fragment.vala')
-rw-r--r-- | main/src/ui/add_conversation/conference_details_fragment.vala | 20 |
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(); } |