GNOME Bugzilla – Bug 786889
[PlacesSidebar] Use "[dis]connect" instead of "[un]mount" for network mounts.
Last modified: 2018-05-02 18:59:04 UTC
Steps to reproduce: 1) Right click a mounted network mount in the Places Sidebar. Expected results: Popover menu has got a "Disconnect" action. Actual results: Popover menu has got a "Mount" action. --------- This is not consistent with "+ Other Locations" (GtkPlacesView), where the mount & unmount actions are labeled as connect & disconnect for remote mounts. This also affects cloud drives, which have a permanent entry in the sidebar even if unmounted. Their popover menu has got a "Mount" action in the sidebar, but a "Connect" action in the Other Locations.
Right, GtkSidebarRow has no concept of whether or not an entry is a network location. I noticed this when adding the "Unmount" tooltip to the eject_button.
tagging as this could be fairly newcomer-friendly: just check what GtkPlacesView does to determine whether the location is on a network, and what GtkPlacesViewRow does with its resulting :is-network property, then replicate the relevant bits in GtkSidebarRow.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/894.