From 50d77d2c7319fee40f4cfaca1e0f13b816736e1d Mon Sep 17 00:00:00 2001
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Date: Fri, 18 Apr 2014 11:07:33 -0400
Subject: [PATCH] gnome: add a "None" video source

This commit adds a "None" video input source, which results in
streaming the client logo.

Refs: #45417
---
 gnome/src/uimanager.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnome/src/uimanager.c b/gnome/src/uimanager.c
index 31ea26fff6..2e0417d714 100644
--- a/gnome/src/uimanager.c
+++ b/gnome/src/uimanager.c
@@ -694,7 +694,10 @@ call_switch_video_input(G_GNUC_UNUSED GtkWidget *widget, gchar *device)
     gboolean switched;
     gchar *resource;
 
-    if (g_strcmp0(device, "Screen") == 0) {
+    if (g_strcmp0(device, "None") == 0) {
+        resource = g_strconcat("file://", ICONS_DIR "/sflphone.png", NULL);
+        switched = dbus_switch_video_input(resource);
+    } else if (g_strcmp0(device, "Screen") == 0) {
         resource = sflphone_get_display();
         switched = dbus_switch_video_input(resource);
     } else {
@@ -1473,6 +1476,8 @@ show_popup_menu(GtkWidget *my_widget, GdkEventButton *event, SFLPhoneClient *cli
             }
             /* Add the special X11 device */
             append_video_input_to_submenu(video_menu, "Screen");
+            /* Add a None entry, which will display the client logo */
+            append_video_input_to_submenu(video_menu, "None");
         }
 #endif
     } else {
-- 
GitLab