[gnome-boxes/emit-disconnected-remote-displays: 2/2] vnc/rdp-display: Emit "disconnected" when displays disconnect
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/emit-disconnected-remote-displays: 2/2] vnc/rdp-display: Emit "disconnected" when displays disconnect
- Date: Mon, 3 Dec 2018 12:47:05 +0000 (UTC)
commit eb46f5d5501bf90a2e0e14ad562b117c4af8603f
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Nov 26 17:01:36 2018 +0100
vnc/rdp-display: Emit "disconnected" when displays disconnect
We should propagate VNC's and RDP's vnc/rdp_disconnected signal to
the Boxes.Display.disconnected one. This way we properly close
the display and send the user back to the overview.
Fixes #278
src/rdp-display.vala | 2 ++
src/vnc-display.vala | 2 ++
2 files changed, 4 insertions(+)
---
diff --git a/src/rdp-display.vala b/src/rdp-display.vala
index b161189a..17631c45 100644
--- a/src/rdp-display.vala
+++ b/src/rdp-display.vala
@@ -34,6 +34,8 @@ public override bool authenticate (out string username, out string password, out
display.rdp_disconnected.connect (() => {
hide (0);
access_finish ();
+
+ disconnected (true);
});
display.rdp_needs_authentication.connect (() => {
need_username = true;
diff --git a/src/vnc-display.vala b/src/vnc-display.vala
index e0ea399f..98585d23 100644
--- a/src/vnc-display.vala
+++ b/src/vnc-display.vala
@@ -36,6 +36,8 @@
display.vnc_disconnected.connect (() => {
hide (0);
access_finish ();
+
+ disconnected (true);
});
display.vnc_auth_failure.connect (() => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]