connection: Allow setting a custom 'pretty name' (bz 784701)

We've had multiple requests over the years for something similar. People
might have to connect to multiple IP addresses, or really large hostnames,
that become difficult to distinguish in the UI.

Add a field in the host details page that allows setting a custom name,
and store it in gsettings.
This commit is contained in:
Cole Robinson
2015-04-11 13:39:25 -04:00
parent 4781ad6cd6
commit 3d2afbaf6f
6 changed files with 157 additions and 64 deletions

View File

@@ -27,6 +27,17 @@
</key>
</schema>
<!-- Relocatable per conn schema -->
<schema id="org.virt-manager.virt-manager.connection">
<key name="pretty-name" type="s">
<default>''</default>
<summary>Custom connection description</summary>
<description>Custom connection description, used in the manager window. If empty, the app generates a default on demand.</description>
</key>
</schema>
<schema id="org.virt-manager.virt-manager"
path="/org/virt-manager/virt-manager/">