diff options
author | fiaxh <git@lightrise.org> | 2022-02-07 22:09:51 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-02-07 22:17:21 +0100 |
commit | 3088879a7b35fede494ca3a8b961a0142f36593a (patch) | |
tree | 371883a86b74bc7af3270e8c9d41b3fbda2191f3 /main/src/ui/call_window | |
parent | ee085e3e0dfd886090ad1e9e958847403c60e691 (diff) | |
download | dino-3088879a7b35fede494ca3a8b961a0142f36593a.tar.gz dino-3088879a7b35fede494ca3a8b961a0142f36593a.zip |
Various call fixes
- Use groupchat message type for invites in MUCs
- Use call id (from propose) instead of message id for Call Invite Messages
- Fix call window controlls appearing when hovering controls
Diffstat (limited to 'main/src/ui/call_window')
-rw-r--r-- | main/src/ui/call_window/call_window.vala | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/main/src/ui/call_window/call_window.vala b/main/src/ui/call_window/call_window.vala index cd490bf9..cf9ca0e6 100644 --- a/main/src/ui/call_window/call_window.vala +++ b/main/src/ui/call_window/call_window.vala @@ -13,7 +13,6 @@ namespace Dino.Ui { public Overlay overlay = new Overlay() { visible=true }; public Grid grid = new Grid() { visible=true }; - public EventBox event_box = new EventBox() { visible=true }; public CallBottomBar bottom_bar = new CallBottomBar() { visible=true }; public Revealer bottom_bar_revealer = new Revealer() { valign=Align.END, transition_type=RevealerTransitionType.CROSSFADE, transition_duration=200, visible=true }; public HeaderBar header_bar = new HeaderBar() { valign=Align.START, halign=Align.END, show_close_button=true, visible=true }; @@ -50,8 +49,7 @@ namespace Dino.Ui { overlay.add_overlay(invite_button_revealer); overlay.get_child_position.connect(on_get_child_position); - event_box.add(overlay); - add(event_box); + add(overlay); } public CallWindow() { @@ -59,9 +57,9 @@ namespace Dino.Ui { this.bind_property("controls-active", header_bar_revealer, "reveal-child", BindingFlags.SYNC_CREATE); this.bind_property("controls-active", invite_button_revealer, "reveal-child", BindingFlags.SYNC_CREATE); - event_box.motion_notify_event.connect(reveal_control_elements); - event_box.enter_notify_event.connect(reveal_control_elements); - event_box.leave_notify_event.connect(reveal_control_elements); + this.motion_notify_event.connect(reveal_control_elements); + this.enter_notify_event.connect(reveal_control_elements); + this.leave_notify_event.connect(reveal_control_elements); this.configure_event.connect(reveal_control_elements); // upon resizing this.configure_event.connect(reposition_participant_widgets); |