sugarlabs/sugar — pull request #228 by FGrose (2014-01-20 21:15:24+00:00)
Title: Rework the wireless control panel section to respect non-wireless connec...

...tions

Fixes #4410 https://bugs.sugarlabs.org/ticket/4410

The 'Discard network history' button is peculiar to Sugar, and
is destructive to all non-wireless connections, despite being in
the 'Wireless' section of the control panel.

Relabel the code variables and functions to be specific to
wireless connections.

Recode the functions to exclude non-wireless connections.

Relabel the 'Radio' box instructions and 'Discard ...' button
to avoid confusion over their state and actions.

If wireless hardware is not present on the system, the 'Wireless'
section of the control panel is excluded.

The availability of wireless hardware is tested with the kernel's
sys filesystem because, with the radio disabled, wireless devices
are not exposed in the NetworkManager API and it would be
inappropriate to turn the radio on--just to see if one is present.

Wireless hardware present:
![network-withwifi](https://f.cloud.github.com/assets/4335897/1958321/989b620e-8217-11e3-9794-3730cf661d1d.png)

No wireless hardware:
![network-nowifi](https://f.cloud.github.com/assets/4335897/1958343/e288b1f0-8217-11e3-87d4-5aea713cf1eb.png)