[gnome-boxes/readd-vnc-read-only-option] Revert "vnc-display: Do not expose "Read only" option"
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/readd-vnc-read-only-option] Revert "vnc-display: Do not expose "Read only" option"
- Date: Mon, 16 Dec 2019 15:39:51 +0000 (UTC)
commit e6670637e7c8bd5607edcdfd67dd1eba9c9737b6
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Dec 16 16:07:58 2019 +0100
Revert "vnc-display: Do not expose "Read only" option"
This reverts commit a2ebfb47c3af42e61ab5890de2214c9bc51f0916.
Issue #445 presents a compelling case for us to expose the option.
Fixes #445
src/vnc-display.vala | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/vnc-display.vala b/src/vnc-display.vala
index 55244a1a..bf639a86 100644
--- a/src/vnc-display.vala
+++ b/src/vnc-display.vala
@@ -145,6 +145,16 @@ public override void disconnect_it () {
public override List<Boxes.Property> get_properties (Boxes.PropertiesPage page) {
var list = new List<Boxes.Property> ();
+ switch (page) {
+ case PropertiesPage.GENERAL:
+ var toggle = new Gtk.Switch ();
+ toggle.halign = Gtk.Align.START;
+ display.bind_property ("read-only", toggle, "active",
+ BindingFlags.BIDIRECTIONAL | BindingFlags.SYNC_CREATE);
+ add_property (ref list, _("Read-only"), toggle);
+ break;
+ }
+
return list;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]