[connections/make-high-quality-the-real-default-vnc-connection-bandwidth] vnc: Make HIGH_QUALITY the default VNC bandwidth quality
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/make-high-quality-the-real-default-vnc-connection-bandwidth] vnc: Make HIGH_QUALITY the default VNC bandwidth quality
- Date: Thu, 19 Nov 2020 11:19:41 +0000 (UTC)
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]