aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/call_window/call_window.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2022-05-14 13:59:54 +0200
committerfiaxh <git@lightrise.org>2022-07-27 20:34:20 +0200
commit2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603 (patch)
tree9e0838c48fe003d4cda8429841a6518842a8596b /main/src/ui/call_window/call_window.vala
parent7e7dcedaf31ee35499875491c9f569c575d28435 (diff)
downloaddino-2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603.tar.gz
dino-2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603.zip
Video for GTK4
Diffstat (limited to 'main/src/ui/call_window/call_window.vala')
-rw-r--r--main/src/ui/call_window/call_window.vala8
1 files changed, 6 insertions, 2 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) {