[gnome-boxes] vnc-display: Do not expose "Read only" option



commit a2ebfb47c3af42e61ab5890de2214c9bc51f0916
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Mar 13 15:18:36 2017 +0100

    vnc-display: Do not expose "Read only" option
    
    There's no benefit on exposing the "Read only" setting from
    a client point of view.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779981

 src/vnc-display.vala |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/src/vnc-display.vala b/src/vnc-display.vala
index 2c82588..abf9b02 100644
--- a/src/vnc-display.vala
+++ b/src/vnc-display.vala
@@ -136,16 +136,6 @@ private class Boxes.VncDisplay: Boxes.Display {
     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]