[gnome-boxes/emit-disconnected-remote-displays] 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] vnc/rdp-display: Emit "disconnected" when displays disconnect
- Date: Mon, 26 Nov 2018 16:04:45 +0000 (UTC)
commit e402d232935b9eb7cb04ac21c44abb111c373dc8
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]