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 672591 - wireless strength indicator is hidden when on VPN
wireless strength indicator is hidden when on VPN
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 677182 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-03-21 20:47 UTC by William Jon McCann
Modified: 2012-06-20 21:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
NetworkMenu: prefer wifi/3g over vpn in the panel (2.60 KB, patch)
2012-03-22 18:16 UTC, Giovanni Campagna
rejected Details | Review
NetworkMenu: prefer wifi/3g over vpn in the panel (4.01 KB, patch)
2012-03-22 18:49 UTC, Giovanni Campagna
none Details | Review
NetworkMenu: prefer wifi/3g over vpn in the panel (10.12 KB, patch)
2012-03-27 15:44 UTC, Cosimo Cecchi
none Details | Review
screenshot (201.90 KB, image/png)
2012-03-27 15:50 UTC, Cosimo Cecchi
  Details
NetworkMenu: prefer wifi/3g over vpn in the panel (6.04 KB, patch)
2012-06-20 14:21 UTC, Cosimo Cecchi
committed Details | Review

Description William Jon McCann 2012-03-21 20:47:46 UTC
The wireless strength indicator is hidden when on VPN. This doesn't seem like a good thing to me.
Comment 1 Giovanni Campagna 2012-03-22 17:41:37 UTC
It used to be like that, and was changed in bug 665115, with the argument that knowing if VPN is available or not (for example to access internal resources) is more important than knowing the underlying connection.

(Anyway, I'm not sure it can be considered 3.4 material, at this point)
Comment 2 Cosimo Cecchi 2012-03-22 17:50:35 UTC
(In reply to comment #1)
> It used to be like that, and was changed in bug 665115, with the argument that
> knowing if VPN is available or not (for example to access internal resources)
> is more important than knowing the underlying connection.

It never was like that...note that the proposal of this bug is to use *two* icons for the network indicator in the panel when on wireless and VPN.
Comment 3 William Jon McCann 2012-03-22 17:59:00 UTC
Hiding variable signal indicators makes absolutely no sense to me. Hiding wired seems fine however.
Comment 4 Giovanni Campagna 2012-03-22 18:16:29 UTC
Created attachment 210366 [details] [review]
NetworkMenu: prefer wifi/3g over vpn in the panel

Wifi and mobile broadband have signal indicators, and therefore
are more useful than vpn icons in the panel. We still special case
vpn over wired and, when supported in the future, other kind of
connections.

Ok, here you have the fix. IMHO, this breaks UI freeze in the specific case,
and I'm not sure it's worth an exception. Anyway, it surely breaks hard code
freeze, so it's 3.4.1 at least.
Comment 5 Florian Müllner 2012-03-22 18:25:46 UTC
Review of attachment 210366 [details] [review]:

It is not about preferring one icon over the other, but to show both under some circumstances.
Comment 6 Cosimo Cecchi 2012-03-22 18:31:07 UTC
(In reply to comment #4)

> Ok, here you have the fix.

I tested the patch, but it doesn't seem to do what this bug report asks for.
To be clear, I think the desired layout of indicator icons requested by this bug would be (excuse the poor ASCII art):

- Wired with no VPN

[ A11Y | SOUND | BT | WIRED | POWER | CHAT-STATUS + NAME ] (same as now)

- Wired + VPN

[ A11Y | SOUND | BT | VPN-LOCK | POWER | CHAT-STATUS + NAME ] (same as now)

- Wireless/3G with no VPN

[ A11Y | SOUND | BT | SIGNAL-STRENGTH | POWER | CHAT-STATUS + NAME ] (same as now)

- Wireless/3G + VPN

[ A11Y | SOUND | BT | SIGNAL-STRENGTH + VPN-LOCK | POWER | CHAT-STATUS + NAME ]
Comment 7 Giovanni Campagna 2012-03-22 18:49:09 UTC
Created attachment 210372 [details] [review]
NetworkMenu: prefer wifi/3g over vpn in the panel

Wifi and mobile broadband have signal indicators and are thus
more useful than vpn icons in the panel. Therefore, in the case
we have both wifi/3g and VPN we prefer the former as the "primary
icon" and add a lock next to it.
Behavior when VPN is added to wired or other connections is still
preserved: the wired icon is replaced by vpn.

-----

I understand my previous comment (and patch) could have sounded rude,
and I'm sorry. Anyway, I hope this patch improves things on VPN+wifi
interaction.
Comment 8 Cosimo Cecchi 2012-03-27 15:44:58 UTC
Created attachment 210709 [details] [review]
NetworkMenu: prefer wifi/3g over vpn in the panel

Another iteration of the patch, based on Giovanni's version.
Comment 9 Cosimo Cecchi 2012-03-27 15:49:29 UTC
(In reply to comment #7)

> I understand my previous comment (and patch) could have sounded rude,
> and I'm sorry. Anyway, I hope this patch improves things on VPN+wifi
> interaction.

Hey Giovanni; I found some time to test your patch today, but it still wasn't working as expected. The problem here is that NMApplet is initially a PanelMenu.ButtonBox, which despite the name, is a single-child container. So you can't just add another icon to it, but you have to pack both icons into a box before.

I tested this version of patch now and it works fine. I am only a bit unsure about the spacing when both the icons are showing; attaching a screenshot to get designer's feedback.
Comment 10 Cosimo Cecchi 2012-03-27 15:50:43 UTC
Created attachment 210711 [details]
screenshot
Comment 11 Giovanni Campagna 2012-05-31 17:49:41 UTC
*** Bug 677182 has been marked as a duplicate of this bug. ***
Comment 12 Jasper St. Pierre (not reading bugmail) 2012-06-01 11:33:55 UTC
(In reply to comment #9)
> Hey Giovanni; I found some time to test your patch today, but it still wasn't
> working as expected. The problem here is that NMApplet is initially a
> PanelMenu.ButtonBox, which despite the name, is a single-child container. So
> you can't just add another icon to it, but you have to pack both icons into a
> box before.

I think that was just a quick hack when it landed. You can probably add support to allocate all children with spacing / 2 or something.
Comment 13 Jakub Steiner 2012-06-01 12:11:03 UTC
Spacing looks decent to me.
Comment 14 Cosimo Cecchi 2012-06-20 14:21:03 UTC
Created attachment 216841 [details] [review]
NetworkMenu: prefer wifi/3g over vpn in the panel

New version of the patch; I tried to make the separation between VPN and other connections a bit clearer in the code; this also fixes some problems in the previous patch where we were not displaying the "activating" state of the VPN connection as a separate icon with wireless connections.
Comment 15 Giovanni Campagna 2012-06-20 21:21:38 UTC
Review of attachment 216841 [details] [review]:

Ok, let's get this going.
Comment 16 Cosimo Cecchi 2012-06-20 21:24:44 UTC
Attachment 216841 [details] pushed as 61de3de - NetworkMenu: prefer wifi/3g over vpn in the panel

Thanks Giovanni, pushed to master.