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 693437 - places-menu: Make 'network' volume handling more Nautilus-like
places-menu: Make 'network' volume handling more Nautilus-like
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
3.7.x
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-08 17:53 UTC by Debarshi Ray
Modified: 2013-02-09 20:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
places-menu: Make 'network' volume handling more Nautilus-like (4.78 KB, patch)
2013-02-08 17:54 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2013-02-08 17:53:05 UTC
While trying out the new GOA volume monitor (bug 686526) with an ownCloud account, I noticed that 'network' volumes without a mount are not shown.

We should still show them like Nautilus, because when a user adds a new account, the storage associated with the account is exposed as a volume but the volume is not immediately mounted to cut down on network traffic. The volume is only mounted when the user tries to access it.

(The GVfs bits are still rough. So clicking the volume in Nautilus leads to a separate entry for the mount. Also, if you click the volume in the places-menu, you will notice an exception caused by a null mount. It could be a GVfs bug too, I am not sure.)
Comment 1 Debarshi Ray 2013-02-08 17:54:39 UTC
Created attachment 235530 [details] [review]
places-menu: Make 'network' volume handling more Nautilus-like

Let me know if you need a test ownCloud account to test this.
Comment 2 Giovanni Campagna 2013-02-09 07:47:01 UTC
Review of attachment 235530 [details] [review]:

Ok, but with a minor style nit.

::: extensions/places-menu/placeDisplay.js
@@ +242,3 @@
+                    networkVolumes.push(volumes[i]);
+                    continue;
+                }

I'd prefer a
if (...) {
} else {
}
here (and same in the the next loop).
Comment 3 Debarshi Ray 2013-02-09 20:34:19 UTC
Comment on attachment 235530 [details] [review]
places-menu: Make 'network' volume handling more Nautilus-like

Thanks! Changed as suggested and committed.