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 646381 - No indication of which wireless network is being connected to
No indication of which wireless network is being connected to
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-31 20:43 UTC by Owen Taylor
Modified: 2011-04-03 12:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of connecting state (24.61 KB, image/png)
2011-03-31 20:43 UTC, Owen Taylor
  Details
NetworkMenu: keep the connection list visible when connecting... (2.01 KB, patch)
2011-04-01 13:40 UTC, Giovanni Campagna
needs-work Details | Review
NetworkMenu: keep the connection list visible when connecting... (1.79 KB, patch)
2011-04-02 17:21 UTC, Giovanni Campagna
committed Details | Review

Description Owen Taylor 2011-03-31 20:43:33 UTC
Created attachment 184822 [details]
Screenshot of connecting state

When I unsuspend, or if I (as a test) rmmod then modprobe my wirless driver I see in the menu only:

 Wireless             Connecting...

With nothing else about wireless. Then only when it's successfully connected, do the different wireless networks fill. This means that if anything goes wrong with the connection process (bug 646376 was what I was hitting earlier) the there is absolutely no clue to the user about what is happening, and they have no ability to select a different network.

Jon thought there was something about this in the mockups, but I didn't see anything. The very simplest thing to do is simply to show the network list with the bullet next to the network being connected to.

We could later get fancy and show a spinner next to the network being connected to or something, but since "Connecting..." is already displayed, it's reasonably obvious.
Comment 1 Giovanni Campagna 2011-04-01 13:40:00 UTC
Created attachment 184873 [details] [review]
NetworkMenu: keep the connection list visible when connecting...

When a device is connecting, we can continue showing available
connections and access points, as well as the active one with the dot.
(Hiding was a remnant of when the device status was on a different
menu item than the title)
Comment 2 Dan Winship 2011-04-01 15:08:53 UTC
Comment on attachment 184873 [details] [review]
NetworkMenu: keep the connection list visible when connecting...


>     _shouldShowConnectionList: function() {
>         return (this.device.state == NetworkManager.DeviceState.DISCONNECTED ||
>-                this.device.state == NetworkManager.DeviceState.ACTIVATED);
>+                this.device.state == NetworkManager.DeviceState.ACTIVATED ||
>+                this.device.state == NetworkManager.DeviceState.PREPARE ||
>+                this.device.state == NetworkManager.DeviceState.CONFIG ||
>+                this.device.state == NetworkManager.DeviceState.IP_CONFIG);

Hm... so that leaves UNKNOWN, UNMANAGED, UNAVAILABLE, NEED_AUTH, IP_CHECK, DEACTIVATING, and FAILED out. I think NEED_AUTH and IP_CHECK should be in.

We might want to say:

    return (this.device.state >= NetworkManager.DeviceState.PREPARE &&
            this.device.state < NetworkManager.DeviceState.DEACTIVATING)

since the enum values look like they're designed to possibly have new states inserted in between them in the future. Let me ask dcbw about that.
Comment 3 Owen Taylor 2011-04-01 15:23:52 UTC
From an IRC discussion with dcbw last night:

<owen> dcbw: so that behavior is coming from
<owen>     _shouldShowConnectionList: function() {
<owen>  return (this.device.state == NetworkManager.DeviceState.DISCONNECTED ||
<owen>                 this.device.state == NetworkManager.DeviceState.ACTIVATED);
<owen>     },
<dcbw> owen: but it's odd that we wouldn't show the same list while connecting
<dcbw> owen: with the dot like you suggest
<owen> dcbw: yeah, I think it's probably an oversight
<dcbw> owen: that should actually be this.device.state >= NM_DEVICE_STATE_DISCONNECTED && this.device.state <= NM_DEVICE_STATE_DISCONNECTING
<owen> dcbw: I don't see a DISCONNECTING In the header file
<owen> DEACTIVATING?
<owen> But woudln't we want to show the list on FAILED as well?
<owen> UNKNOWN/UNMANAGED/UNAVAILABLE seem like the only ones we wouldn't want a list
<dcbw> yeah, DEACTIVATING
<dcbw> sure
<dcbw> that sounds fine
<dcbw> if its >= DISCONNECTED, show the connections
<owen> dcbw: that would apply to all device types?
<dcbw> yes
Comment 4 Giovanni Campagna 2011-04-02 17:21:45 UTC
Created attachment 184955 [details] [review]
NetworkMenu: keep the connection list visible when connecting...

When a device is connecting, we can continue showing available
connections and access points, as well as the active one with the dot.
(Hiding was a remnant of when the device status was on a different
menu item than the title)
Comment 5 Owen Taylor 2011-04-03 01:44:56 UTC
Review of attachment 184955 [details] [review]:

Good with me pending release team approval.
Comment 6 Giovanni Campagna 2011-04-03 12:24:41 UTC
Attachment 184955 [details] pushed as 38bcd52 - NetworkMenu: keep the connection list visible when connecting...