[gnome-remote-desktop] settings: Make RDP screen share mode getter name backend specific



commit f0d9bf0d7b65c7373b67613bf2f5a6ae720dae48
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Wed Aug 10 07:27:01 2022 +0200

    settings: Make RDP screen share mode getter name backend specific
    
    The respective name of the screen share mode getter for the VNC backend
    contains 'vnc', so align the getter for the RDP backend accordingly.

 src/grd-session-rdp.c | 2 +-
 src/grd-settings.c    | 2 +-
 src/grd-settings.h    | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 840a5a5a..441596f2 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -2268,7 +2268,7 @@ grd_session_rdp_new (GrdRdpServer      *rdp_server,
   session_rdp->connection = g_object_ref (connection);
   session_rdp->hwaccel_nvidia = hwaccel_nvidia;
 
-  session_rdp->screen_share_mode = grd_settings_get_screen_share_mode (settings);
+  session_rdp->screen_share_mode = grd_settings_get_rdp_screen_share_mode (settings);
 
   if (!init_rdp_session (session_rdp, username, password, &error))
     {
diff --git a/src/grd-settings.c b/src/grd-settings.c
index fc004fdc..a95628f5 100644
--- a/src/grd-settings.c
+++ b/src/grd-settings.c
@@ -106,7 +106,7 @@ grd_settings_override_vnc_port (GrdSettings *settings,
 }
 
 GrdRdpScreenShareMode
-grd_settings_get_screen_share_mode (GrdSettings *settings)
+grd_settings_get_rdp_screen_share_mode (GrdSettings *settings)
 {
   return settings->rdp.screen_share_mode;
 }
diff --git a/src/grd-settings.h b/src/grd-settings.h
index a000fb21..1fe64199 100644
--- a/src/grd-settings.h
+++ b/src/grd-settings.h
@@ -46,7 +46,9 @@ void grd_settings_override_rdp_port (GrdSettings *settings,
 void grd_settings_override_vnc_port (GrdSettings *settings,
                                      int          port);
 
-GrdRdpScreenShareMode grd_settings_get_screen_share_mode (GrdSettings *settings);
+GrdRdpScreenShareMode grd_settings_get_rdp_screen_share_mode (GrdSettings *settings);
+
+GrdVncScreenShareMode grd_settings_get_vnc_screen_share_mode (GrdSettings *settings);
 
 char * grd_settings_get_rdp_server_cert (GrdSettings *settings);
 
@@ -66,6 +68,4 @@ gboolean grd_settings_get_vnc_view_only (GrdSettings *settings);
 
 GrdVncAuthMethod grd_settings_get_vnc_auth_method (GrdSettings *settings);
 
-GrdVncScreenShareMode grd_settings_get_vnc_screen_share_mode (GrdSettings *settings);
-
 #endif /* GRD_SETTINGS_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]