diff options
author | Marvin W <git@larma.de> | 2022-05-14 13:59:54 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-07-27 20:34:20 +0200 |
commit | 2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603 (patch) | |
tree | 9e0838c48fe003d4cda8429841a6518842a8596b /main/src/ui | |
parent | 7e7dcedaf31ee35499875491c9f569c575d28435 (diff) | |
download | dino-2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603.tar.gz dino-2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603.zip |
Video for GTK4
Diffstat (limited to 'main/src/ui')
-rw-r--r-- | main/src/ui/call_window/call_window.vala | 8 | ||||
-rw-r--r-- | main/src/ui/call_window/call_window_controller.vala | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/main/src/ui/call_window/call_window.vala b/main/src/ui/call_window/call_window.vala index 5facd574..cd05848a 100644 --- a/main/src/ui/call_window/call_window.vala +++ b/main/src/ui/call_window/call_window.vala @@ -149,7 +149,7 @@ namespace Dino.Ui { } public void set_own_video(Widget? widget_) { -// own_video_box.foreach((widget) => { own_video_box.remove(widget); }); + unset_own_video(); own_video = widget_; if (own_video == null) { @@ -170,7 +170,11 @@ namespace Dino.Ui { } public void unset_own_video() { -// own_video_box.foreach((widget) => { own_video_box.remove(widget); }); + Widget to_remove = own_video_box.get_first_child(); + while (to_remove != null) { + own_video_box.remove(to_remove); + to_remove = own_video_box.get_first_child(); + } } public void set_status(string participant_id, string state) { diff --git a/main/src/ui/call_window/call_window_controller.vala b/main/src/ui/call_window/call_window_controller.vala index 6ff02964..e3f8b670 100644 --- a/main/src/ui/call_window/call_window_controller.vala +++ b/main/src/ui/call_window/call_window_controller.vala @@ -364,7 +364,7 @@ public class Dino.Ui.CallWindowController : Object { participant_widgets.keys.@foreach((peer_id) => { remove_participant(peer_id); return true; }); call_window_handler_ids = bottom_bar_handler_ids = new ulong[0]; - + own_video.detach(); base.dispose(); } } |