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 645981 - issues with wireless expander in shell network widget
issues with wireless expander in shell network widget
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
2.91.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-28 17:24 UTC by Bill Nottingham
Modified: 2011-04-11 14:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
NetworkMenu: destroy the More... submenu when empty (2.45 KB, patch)
2011-03-28 19:04 UTC, Giovanni Campagna
reviewed Details | Review
NetworkMenu: destroy More... submenu when empty (2.21 KB, patch)
2011-03-28 19:29 UTC, Giovanni Campagna
committed Details | Review

Description Bill Nottingham 2011-03-28 17:24:01 UTC
1. Expander causes dropdown to change size (will attach video)

2. If the extra wireless networks go away, the 'More' expander is
still shown, but the expander does nothing.
Comment 1 Bill Nottingham 2011-03-28 17:25:09 UTC
Screencast is at https://bugzilla.redhat.com/attachment.cgi?id=487568. Yay attachment limits.
Comment 2 Dan Winship 2011-03-28 18:10:37 UTC
the size-changing is fixed in git. (it still changes size, but it repositions the menu as well)
Comment 3 Giovanni Campagna 2011-03-28 19:04:53 UTC
Created attachment 184497 [details] [review]
NetworkMenu: destroy the More... submenu when empty

Keep track of how many networks have been added to the more submenu,
and destroy the menu when this number reaches 0.
Comment 4 Dan Winship 2011-03-28 19:21:01 UTC
Comment on attachment 184497 [details] [review]
NetworkMenu: destroy the More... submenu when empty

Hm... works, but it might be simpler to add a PopupMenuBase.length property and use that?
Comment 5 Giovanni Campagna 2011-03-28 19:29:39 UTC
Created attachment 184499 [details] [review]
NetworkMenu: destroy More... submenu when empty

Add a .length property to PopupMenuBase, and use it from the network
menu to destroy the menu when removing a network without rebuilding.

I wanted the fix to remain self-contained, but this is definitely cleaner.
Comment 6 Dan Winship 2011-03-28 20:08:55 UTC
Comment on attachment 184499 [details] [review]
NetworkMenu: destroy More... submenu when empty

looks good
Comment 7 Giovanni Campagna 2011-03-28 20:15:02 UTC
You mean: commit_after_freeze? Or you want a release-team exception? I don't think it is worth it, it can wait for 3.0.1.
Comment 8 Dan Winship 2011-03-28 20:24:02 UTC
Comment on attachment 184499 [details] [review]
NetworkMenu: destroy More... submenu when empty

oh, i thought you were planning to try to get it in. after freeze is better
Comment 9 Dan Winship 2011-04-08 14:43:49 UTC
ok, took a while to figure out how to test this. (I made NMDeviceWireless._createSection() set numItems to this._networks.length-1, and then unplugged my wifi hub.) It works.
Comment 10 Dan Winship 2011-04-11 14:44:36 UTC
Attachment 184499 [details] pushed as 625a4c0 - NetworkMenu: destroy More... submenu when empty