From fc71da7d4721ea4f845820b7d72229460d560fae Mon Sep 17 00:00:00 2001 From: totaam Date: Mon, 10 May 2021 15:10:07 +0700 Subject: [PATCH] #3070 add 'clipboard' --- xpra/gtk_common/start_gui.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/xpra/gtk_common/start_gui.py b/xpra/gtk_common/start_gui.py index a94c2c6156..fc2e112b91 100644 --- a/xpra/gtk_common/start_gui.py +++ b/xpra/gtk_common/start_gui.py @@ -819,7 +819,7 @@ def set_value_from_widget(self, option_name): return #pick the first one: value = values[0] - log.info("changed: %s=%s (%s) - was %s (%s)", fn, value, type(value), current_value, type(current_value)) + log.info("changed: %s=%r (%s) - was %r (%s)", fn, value, type(value), current_value, type(current_value)) setattr(self.options, fn, value) @@ -894,13 +894,12 @@ def populate_form(self): "invert-z" : "invert Z axis", "invert-all" : "invert all axes", }) - #tb.attach(Gtk.Label("Window Border"), 0) - #tb = self.table_tab("clipboard.png", "Clipboard")[0] - #tb.attach(Gtk.Label("Enabled"), 0) - #self.clipboard_enabled = Gtk.CheckButton() - #tb.attach(self.clipboard_enabled, 1) - #tb.inc() - #tb.attach(Gtk.Label("Direction"), 0) + self.combo(tb, "Clipboard", "clipboard-direction", { + "both" : "enabled", + "to-server" : "to server only", + "to-client" : "to client only", + "disabled" : "disabled", + }) self.vbox.show_all()