[connections/make-high-quality-the-real-default-vnc-connection-bandwidth] vnc: Make HIGH_QUALITY the default VNC bandwidth quality




commit 1396b4c5d7366bf0bf1984d7e4bbefe5333a3e6e
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Nov 19 12:19:03 2020 +0100

    vnc: Make HIGH_QUALITY the default VNC bandwidth quality
    
    See https://gitlab.gnome.org/GNOME/connections/-/merge_requests/32#note_964326

 src/vnc-connection.vala | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/vnc-connection.vala b/src/vnc-connection.vala
index 7305d1f..226059d 100644
--- a/src/vnc-connection.vala
+++ b/src/vnc-connection.vala
@@ -80,29 +80,26 @@ namespace Connections {
         }
 
         public enum Bandwidth {
-            DEFAULT,
             HIGH_QUALITY,
             FAST_REFRESH;
 
             public string to_string () {
                 switch (this) {
-                    case HIGH_QUALITY:
-                        return "high-quality";
                     case FAST_REFRESH:
                         return "fast-refresh";
+                    case HIGH_QUALITY:
                     default:
-                        return "default";
+                        return "high-quality";
                 }
             }
 
             public Bandwidth from_string (string bandwidth) {
                 switch (bandwidth) {
-                    case "high-quality":
-                        return HIGH_QUALITY;
                     case "fast-refresh":
                         return FAST_REFRESH;
+                    case "high-quality":
                     default:
-                        return DEFAULT;
+                        return HIGH_QUALITY;
                 }
             }
         }
@@ -115,7 +112,6 @@ namespace Connections {
                     break;
 
                 case HIGH_QUALITY:
-                case DEFAULT:
                 default:
                     display.set_depth (DisplayDepthColor.FULL);
                     break;


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