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 669409 - Several improvements during FOSDEM
Several improvements during FOSDEM
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:
 
 
Reported: 2012-02-05 14:47 UTC by Marc-Andre Lureau
Modified: 2016-03-31 14:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
display-page: wait until the widget is realized (1.28 KB, patch)
2012-02-05 14:47 UTC, Marc-Andre Lureau
committed Details | Review
Teach the Wizard to accept qemu..:// sources (3.84 KB, patch)
2012-02-05 14:47 UTC, Marc-Andre Lureau
rejected Details | Review
source: do not save automatically if it didn't exist (1018 bytes, patch)
2012-02-05 14:47 UTC, Marc-Andre Lureau
committed Details | Review
wizard: update the URL page when entry is updated (6.49 KB, patch)
2012-02-05 14:47 UTC, Marc-Andre Lureau
reviewed Details | Review
Don't choke on unknown media, use default values (1.23 KB, patch)
2012-02-05 14:47 UTC, Marc-Andre Lureau
accepted-commit_now Details | Review
libvirt-machine: update domain xml when connecting display (2.18 KB, patch)
2012-02-05 14:47 UTC, Marc-Andre Lureau
committed Details | Review
Don't choke on unknown media, use default values (1.17 KB, patch)
2012-02-06 18:31 UTC, Zeeshan Ali
committed Details | Review
wizard: update the URL page when entry is updated (6.46 KB, patch)
2012-02-06 23:29 UTC, Marc-Andre Lureau
committed Details | Review

Description Marc-Andre Lureau 2012-02-05 14:47:04 UTC
Sorry too busy drinking beers, I just opened 1 bug for these various patches.
Comment 1 Marc-Andre Lureau 2012-02-05 14:47:11 UTC
Created attachment 206827 [details] [review]
display-page: wait until the widget is realized

It can be that the widget isn't yet realized when "show_display" is
called. Use the first "draw" even to hook the cursor change event to
the display widget.
Comment 2 Marc-Andre Lureau 2012-02-05 14:47:15 UTC
Created attachment 206828 [details] [review]
Teach the Wizard to accept qemu..:// sources
Comment 3 Marc-Andre Lureau 2012-02-05 14:47:19 UTC
Created attachment 206829 [details] [review]
source: do not save automatically if it didn't exist
Comment 4 Marc-Andre Lureau 2012-02-05 14:47:25 UTC
Created attachment 206830 [details] [review]
wizard: update the URL page when entry is updated

Update the URL page depending on the URI.

We currently do simple guesses based on simple URI parsing, but
later on, we could query the URI to gather informations etc..
Comment 5 Marc-Andre Lureau 2012-02-05 14:47:30 UTC
Created attachment 206831 [details] [review]
Don't choke on unknown media, use default values
Comment 6 Marc-Andre Lureau 2012-02-05 14:47:39 UTC
Created attachment 206832 [details] [review]
libvirt-machine: update domain xml when connecting display

When the machine is started, the Spice port is added to the domain
XML.  But the "updated" signal is not emitted in this case, and it
fails to lookup connection details.
Comment 7 Zeeshan Ali 2012-02-06 17:49:54 UTC
Review of attachment 206827 [details] [review]:

ACK with following change to log:

"draw" even -> 'draw' event
Comment 8 Zeeshan Ali 2012-02-06 17:51:40 UTC
Review of attachment 206828 [details] [review]:

This is more like a new feature, not a bugfix. Please file into separate bug.
Comment 9 Zeeshan Ali 2012-02-06 17:52:40 UTC
Review of attachment 206829 [details] [review]:

ACK
Comment 10 Zeeshan Ali 2012-02-06 18:04:45 UTC
Review of attachment 206830 [details] [review]:

Overall it looks OK. Assuming you tested this already?

::: configure.ac
@@ -49,3 @@
 LIBVIRT_GCONFIG_MIN_VERSION=0.0.4
 LIBXML2_MIN_VERSION=2.7.8
-SPICE_GTK_MIN_VERSION=0.7.98

I'm assuming you have a tarball ready soon for 0.9 or is there already?

::: src/wizard.vala
@@ +118,3 @@
+                prepare_for_location (this.wizard_source.uri, true);
+                if (source != null)
+                    message (source.source_type);

i guess you wanted to remove this but forgot?

@@ -115,0 +114,11 @@
+
+            var text = _("Please enter desktop or collection URI");
+            var icon = "preferences-desktop-remote-desktop";
... 8 more ...

coding-style: no {} needed here

@@ -181,2 +202,2 @@
         source = new CollectionSource (uri.server ?? uri_as_text, uri.scheme, uri_as_text);
-
+        message (uri.scheme);

same here. If you intend to put something to console for debugging, use 'debug' and print a bit more verbose information
Comment 11 Zeeshan Ali 2012-02-06 18:09:14 UTC
Review of attachment 206831 [details] [review]:

Other than these nitpicks, ACK!

::: src/wizard.vala
@@ -227,3 +227,3 @@
         try {
             install_media = InstallerMedia.instantiate.end (result);
-            resources = os_db.get_resources_for_os (install_media.os, install_media.os_media.architecture);
+            // XXX: these values could be made editable somehow

1. editable how?
2. XXX -> FIXME. XXX sound like adult movie. :)

@@ -229,1 +229,4 @@
-            resources = os_db.get_resources_for_os (install_media.os, install_media.os_media.architecture);
+            // XXX: these values could be made editable somehow
+            var architecture = "i686";
+            if (install_media.os_media != null) {
+                architecture = install_media.os_media.architecture;

I thought we preferred this syntax:

var architecture = (install_media.os_media != null) ? install_media.os_media.architecture : "i686";
Comment 12 Zeeshan Ali 2012-02-06 18:11:22 UTC
Review of attachment 206832 [details] [review]:

ACK
Comment 13 Zeeshan Ali 2012-02-06 18:27:27 UTC
Attachment 206829 [details] pushed as e57da6f - source: do not save automatically if it didn't exist
Attachment 206832 [details] pushed as 1317189 - libvirt-machine: update domain xml when connecting display
Comment 14 Zeeshan Ali 2012-02-06 18:31:18 UTC
Created attachment 206925 [details] [review]
Don't choke on unknown media, use default values
Comment 15 Zeeshan Ali 2012-02-06 18:31:40 UTC
Comment on attachment 206925 [details] [review]
Don't choke on unknown media, use default values

Attachment 206925 [details] pushed as 753ac40 - Don't choke on unknown media, use default values
Comment 16 Marc-Andre Lureau 2012-02-06 23:28:53 UTC
Review of attachment 206830 [details] [review]:

::: configure.ac
@@ -49,3 @@
 LIBVIRT_GCONFIG_MIN_VERSION=0.0.4
 LIBXML2_MIN_VERSION=2.7.8
-SPICE_GTK_MIN_VERSION=0.7.98

Yes, since last week.

::: src/wizard.vala
@@ +118,3 @@
+                prepare_for_location (this.wizard_source.uri, true);
+                if (source != null)
+                    message (source.source_type);

indeed. removed.

@@ -115,0 +114,11 @@
+                } else {
+            var text = _("Please enter desktop or collection URI");
+            var icon = "preferences-desktop-remote-desktop";
... 8 more ...

ok

@@ -181,2 +202,2 @@
         source = new CollectionSource (uri.server ?? uri_as_text, uri.scheme, uri_as_text);
-
+        message (uri.scheme);

leftover again
Comment 17 Marc-Andre Lureau 2012-02-06 23:29:53 UTC
Created attachment 206942 [details] [review]
wizard: update the URL page when entry is updated

Update the URL page depending on the URI.

We currently do simple guesses based on simple URI parsing, but
later on, we could query the URI to gather informations etc..
Comment 18 Zeeshan Ali 2012-02-07 11:20:50 UTC
Review of attachment 206942 [details] [review]:

Ok, assuming you have tested it, ACK!

::: src/wizard.vala
@@ -114,0 +113,17 @@
+
+            var text = _("Please enter desktop or collection URI");
+            var icon = "preferences-desktop-remote-desktop";
... 14 more ...

nitpick: should be inside try block so we dont keep updating text/icon for no reason?
Comment 19 Marc-Andre Lureau 2012-02-07 11:37:18 UTC
Review of attachment 206942 [details] [review]:

::: src/wizard.vala
@@ -114,0 +113,17 @@
+            wizard_source.update_url_page (_("Desktop Access"), text, icon);
+            var text = _("Please enter desktop or collection URI");
+            var icon = "preferences-desktop-remote-desktop";
... 14 more ...

here we keep "desktop-remote" most of the time, only changing it to "network-workgroup" when we are sure it's a collection server.

avoiding the text/icon update is a micro optimization, that could be handled later in the update_url_page()
Comment 20 Marc-Andre Lureau 2012-02-07 11:38:00 UTC
Attachment 206942 [details] pushed as b2add0b - wizard: update the URL page when entry is updated