gnome: add video preview

Refs #66538

Change-Id: Idb4be5e7a093b56fbb8a3813d1526baa9a1b8c9c
diff --git a/src/currentcallview.cpp b/src/currentcallview.cpp
index a9968ac..b9a8139 100644
--- a/src/currentcallview.cpp
+++ b/src/currentcallview.cpp
@@ -35,6 +35,7 @@
 #include <callmodel.h>
 #include "utils/drawing.h"
 #include "video/video_widget.h"
+#include <video/previewmanager.h>
 
 struct _CurrentCallView
 {
@@ -56,6 +57,7 @@
     GtkWidget *label_duration;
     GtkWidget *frame_video;
     GtkWidget *video_widget;
+    GtkWidget *button_hangup;
 
     Video::Renderer *remote_renderer;
 
@@ -103,6 +105,7 @@
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_status);
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_duration);
     gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, frame_video);
+    gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, button_hangup);
 }
 
 GtkWidget *
@@ -252,4 +255,8 @@
                             NULL);
         }
     );
+
+    /* preview renderer */
+    video_widget_set_local_renderer(VIDEO_WIDGET(priv->video_widget),
+                                    Video::PreviewManager::instance()->previewRenderer());
 }