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 700322 - More network cleanups
More network cleanups
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-05-14 18:00 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2013-05-15 15:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: Remove semi-complex primary device finding (1.68 KB, patch)
2013-05-14 18:00 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
network: Remove an unused getter (875 bytes, patch)
2013-05-14 18:01 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
network: Use checkConnection to set up the initial connections (1.42 KB, patch)
2013-05-14 18:01 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
network: Don't pass this._connections to the VPN section (1.46 KB, patch)
2013-05-14 18:01 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
network: Use accessPointAdded to add initial access points (4.29 KB, patch)
2013-05-14 18:01 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-05-14 18:00:55 UTC
Hacking more on the aggregate menu caused these to appear.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-05-14 18:00:59 UTC
Created attachment 244213 [details] [review]
network: Remove semi-complex primary device finding

According to dcbw (and some updated documentation), there will
always be a 1:1 correspondence between NMActiveConnection and
an NMDevice.
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-05-14 18:01:02 UTC
Created attachment 244214 [details] [review]
network: Remove an unused getter
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-05-14 18:01:05 UTC
Created attachment 244215 [details] [review]
network: Use checkConnection to set up the initial connections
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-05-14 18:01:08 UTC
Created attachment 244216 [details] [review]
network: Don't pass this._connections to the VPN section

It's always empty by this point.
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-05-14 18:01:11 UTC
Created attachment 244217 [details] [review]
network: Use accessPointAdded to add initial access points

This is technically a smidge slower due to the constant bisect insert,
but since this should only happen when we make a Wi-Fi dialog, it's
insignificant.
Comment 6 Giovanni Campagna 2013-05-14 20:10:00 UTC
Review of attachment 244213 [details] [review]:

Yes.
Comment 7 Giovanni Campagna 2013-05-14 20:11:31 UTC
Review of attachment 244214 [details] [review]:

Yes.
Comment 8 Giovanni Campagna 2013-05-14 20:11:31 UTC
Review of attachment 244214 [details] [review]:

Yes.
Comment 9 Giovanni Campagna 2013-05-14 20:13:13 UTC
Review of attachment 244215 [details] [review]:

You had a better commit message in a previous patch, didn't you?
I mean, you explained that you're regressing on performance, but the resulting code is cleaner.

Btw, the compromise is acceptable for me, so this is acn.
Comment 10 Giovanni Campagna 2013-05-14 20:13:29 UTC
Review of attachment 244216 [details] [review]:

Yes.
Comment 11 Giovanni Campagna 2013-05-14 20:14:34 UTC
Review of attachment 244217 [details] [review]:

Ok
Comment 12 Jasper St. Pierre (not reading bugmail) 2013-05-15 15:15:37 UTC
Attachment 244213 [details] pushed as cd9c5b9 - network: Remove semi-complex primary device finding
Attachment 244214 [details] pushed as f6e7034 - network: Remove an unused getter
Attachment 244215 [details] pushed as cdbed0c - network: Use checkConnection to set up the initial connections
Attachment 244216 [details] pushed as 30c64ba - network: Don't pass this._connections to the VPN section
Attachment 244217 [details] pushed as 6330379 - network: Use accessPointAdded to add initial access points