[gnome-boxes] remote: allow changing URI of non-connected display
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] remote: allow changing URI of non-connected display
- Date: Tue, 30 Apr 2013 16:29:15 +0000 (UTC)
commit 43d180ce681f21080b20b584e4ec83c18561fc61
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Mon Apr 8 02:21:13 2013 +0200
remote: allow changing URI of non-connected display
https://bugzilla.gnome.org/show_bug.cgi?id=697523
src/remote-machine.vala | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/remote-machine.vala b/src/remote-machine.vala
index e89541a..9c3d349 100644
--- a/src/remote-machine.vala
+++ b/src/remote-machine.vala
@@ -55,7 +55,15 @@ private class Boxes.RemoteMachine: Boxes.Machine, Boxes.IPropertiesProvider {
source.name = name;
return true;
});
- add_string_property (ref list, _("URI"), source.uri);
+
+ property = add_string_property (ref list, _("URI"), source.uri);
+ if (!is_connected ())
+ property.editable = true;
+ property.changed.connect ((property, uri) => {
+ source.uri = uri;
+ return true;
+ });
+
break;
case PropertiesPage.DISPLAY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]