After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680168 - Keep "name" as a generic free-form base item text
Keep "name" as a generic free-form base item text
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks: 680187
 
 
Reported: 2012-07-18 12:55 UTC by Marc-Andre Lureau
Modified: 2016-03-31 14:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Keep "name" as a generic free-form base item text (5.29 KB, patch)
2012-07-18 12:55 UTC, Marc-Andre Lureau
none Details | Review
Keep "name" as a generic free-form base item text (5.22 KB, patch)
2012-07-18 12:58 UTC, Marc-Andre Lureau
needs-work Details | Review
Keep "name" as a generic free-form base item text (5.27 KB, patch)
2012-07-18 17:26 UTC, Marc-Andre Lureau
committed Details | Review

Description Marc-Andre Lureau 2012-07-18 12:55:47 UTC
"title" should stay libvirt specific.

Now renaming a remote machine connection in properties update
properties topbar label correctly again.
Comment 1 Marc-Andre Lureau 2012-07-18 12:55:49 UTC
Created attachment 219097 [details] [review]
Keep "name" as a generic free-form base item text
Comment 2 Marc-Andre Lureau 2012-07-18 12:58:02 UTC
Created attachment 219098 [details] [review]
Keep "name" as a generic free-form base item text

"title" should stay libvirt specific.

Now renaming a remote machine connection in properties update
properties topbar label correctly again.
Comment 3 Marc-Andre Lureau 2012-07-18 13:43:40 UTC
Review of attachment 219098 [details] [review]:

::: src/collection-view.vala
@@ -239,3 @@
 
-            if (item_a == null || item_b == null) // FIXME?!
-                return 0;

I need to investigate why we have null values, meanwhile, not change this code..
Comment 4 Marc-Andre Lureau 2012-07-18 17:26:47 UTC
Created attachment 219149 [details] [review]
Keep "name" as a generic free-form base item text

"title" should stay libvirt specific.

Now renaming a remote machine connection in properties update
properties topbar label correctly again.
Comment 5 Christophe Fergeau 2012-07-19 10:46:42 UTC
Ok, once again trying to set the proper status on a patch just wastes my time, so a ACK in a comment will have to do.
Comment 6 Zeeshan Ali 2012-07-28 15:09:32 UTC
Review of attachment 219149 [details] [review]:

Looks good otherewise.

::: src/libvirt-machine.vala
@@ +92,3 @@
                            GVir.Connection connection,
                            GVir.Domain     domain) throws GLib.Error {
+        var config = domain.get_config (0);

update_domain_config() call below does the same again which is why I wasn't doing this here. I suggest to just use domain name here as the Item.name and update it later if title is available after domain config is fetched.
Comment 7 Marc-Andre Lureau 2012-07-30 15:42:35 UTC
(In reply to comment #6)
> +        var config = domain.get_config (0);
> 
> update_domain_config() call below does the same again which is why I wasn't
> doing this here. I suggest to just use domain name here as the Item.name and
> update it later if title is available after domain config is fetched.

Altough it is true that we call domain.get_config (0) twice after this patch, this is an intermediate change before introducing GVir.DomainXMLFlags.INACTIVE usage in the following patches I submitted for dealing with pending config.
Comment 8 Marc-Andre Lureau 2012-07-30 17:14:18 UTC
Attachment 219149 [details] pushed as 149418d - Keep "name" as a generic free-form base item text