[gnome-boxes/gnome-3-8] remote: allow changing URI of non-connected display
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-8] remote: allow changing URI of non-connected display
- Date: Tue, 28 May 2013 09:06:48 +0000 (UTC)
commit e4aa1c95c136f0958dfd2a2aaa89d2f6d1b3c98b
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]