Commit graph

133 commits

Author SHA1 Message Date
Richard Hughes
a9523ffc5b network: remove all the entries apart from VPN from the [+] dialog box
We can't actually see the new connections for the other types, and so it's deceptive at best
to allow the user to create anything other than the VPN connection type.
2011-03-25 15:46:28 +00:00
William Jon McCann
1e53d76bc0 network: use computer-fail instead of the error icon when NM isn't available
It is not something the user did wrong so we shouldn't use a mean
looking error icon.  We use computer-fail when something is wrong
with the setup of the computer that the user can't fix.
2011-03-21 09:58:08 -04:00
Richard Hughes
88e192c032 network: add a warning to the user when the PAC textbox is empty and we're going to use WPAD
If you choose Automatic and then don't fill in any configuration URL, it
defaults to WPAD.

But really, WPAD is a bad default anyway; if you enable it on an untrusted
network, then anyone else on that network can tell your machine that it should
proxy all of your web traffic through them.

The best bet might be to just add some explanatory text to the (otherwise
nearly-empty) Automatic page.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=641793
2011-03-18 12:53:02 +00:00
Matthias Clasen
e9e5535797 Network: Always select a device
In particular, when removing the selected row, we need to manually
select another one.
https://bugzilla.gnome.org/show_bug.cgi?id=645095
2011-03-17 22:56:48 -04:00
Matthias Clasen
b071eba8eb Network: Ellipsize the connection name label
For custom or VPN connections, the name can get long, so
better ellipsize, otherwise we risk resizing.
2011-03-17 22:12:48 -04:00
Matthias Clasen
22d7b535fc Network: try to fix horizontal resizing problems
Strip out an extra label between the device list and the right side
to win some space, and force the right-hand sides on the proxy tab
to not change size.

https://bugzilla.gnome.org/show_bug.cgi?id=644981
2011-03-17 22:09:20 -04:00
Cosimo Cecchi
92c3f6dd61 all: set the 'inline-toolbar' style class to toolbars which need it
https://bugzilla.gnome.org/show_bug.cgi?id=645059
2011-03-17 15:09:09 -04:00
Cosimo Cecchi
7c70142969 network: add a missing include 2011-03-17 15:07:34 -04:00
Richard Hughes
e9230d25fa network: actually switch the wireless networks when the combo is changed
If we have an existing connection that matches the SSID, then we use that.
Otherwise we create a connection and activate it.

This fixes #644446
2011-03-17 16:33:03 +00:00
Matthias Clasen
af40513416 Network: fix the duplicate ap check
We were getting the aps to check against from the wrong array.
https://bugzilla.gnome.org/show_bug.cgi?id=644959
2011-03-17 09:09:21 -04:00
Matthias Clasen
d1be44ba22 Network: Avoid warnings 2011-03-17 08:55:36 -04:00
Richard Hughes
d7e7cf2278 network: show a device header for the proxy device
This is the first half of #644981, although I need help from the designers for the rest.
2011-03-17 09:45:56 +00:00
Richard Hughes
b83d43d0cd network: use the new network-vpn icon from gnome-icon-theme 2011-03-17 09:35:15 +00:00
Matthias Clasen
28db9455f3 Network: forgotten file 2011-03-17 00:37:56 -04:00
Matthias Clasen
f456f06153 Network: don't use deprecated libnm-glib functions
nm_access_point_get_hw_address() has been deprecated.
2011-03-17 00:37:56 -04:00
Matthias Clasen
b6e340aaa1 Network: Use better label for IP address
When we have only one of ip v4 or v6, just label it 'IP Address'.
https://bugzilla.gnome.org/show_bug.cgi?id=644965
2011-03-16 23:41:56 -04:00
Matthias Clasen
e43f922b89 Network: Avoid header pixel noise and inconsistent spacing
https://bugzilla.gnome.org/show_bug.cgi?id=644954
https://bugzilla.gnome.org/show_bug.cgi?id=644955
2011-03-16 23:18:05 -04:00
Matthias Clasen
2df60eab71 Network: Fix up visibility of fields
When a device is unavailable / off, we show only the hardware address.
Otherwise, we show speed / security / ssid.
Other connection parameters are only shown when the connection is active.
2011-03-16 22:38:53 -04:00
Matthias Clasen
96c7ab6f9a Network: Mark speed label as translatable
Also, use the same units everywhere.
2011-03-16 22:02:32 -04:00
Matthias Clasen
c93c35aef9 Network: Adjust wording of VPN status messages too 2011-03-16 21:36:37 -04:00
William Jon McCann
e1b1be1f60 network: fix version compatibility warning dialog
Make it use the correct parent window, improve the text, and
not block startup.

https://bugzilla.gnome.org/show_bug.cgi?id=644973
2011-03-16 20:47:05 -04:00
Matthias Clasen
4f000889eb Network: Add padding above options buttons
https://bugzilla.gnome.org/show_bug.cgi?id=644957
2011-03-16 20:41:42 -04:00
Matthias Clasen
67241cc102 Network: adjust status strings
Make the strings match what the shell network menu shows
more closely.
https://bugzilla.gnome.org/show_bug.cgi?id=644962
2011-03-16 19:13:45 -04:00
Matthias Clasen
e22dbc495f Network: Use dim-label style class for labels
Also drop :s.
https://bugzilla.gnome.org/show_bug.cgi?id=644958
2011-03-16 18:52:45 -04:00
Matthias Clasen
9fd3059bb7 Network: Drop tooltips on the device list
https://bugzilla.gnome.org/show_bug.cgi?id=644964
2011-03-16 18:23:27 -04:00
Richard Hughes
01c6b793ed network: keep the device/connections model up to date with reality
Remove the ID parameter from the model, and move it to the NetDevice object.
Remove the devices GPtrArray and use the mode for everything.
Connect up the changed and deleted signals from NetObject and DTRT in the UI.
2011-03-16 17:31:09 +00:00
Richard Hughes
cb031cf06c network: watch for new VPN connections being added and add them to the panel 2011-03-16 17:31:09 +00:00
Richard Hughes
976c9ce1c3 network: when the user selects a VPN connection, allow them to delete it 2011-03-16 12:32:09 +00:00
Matthias Clasen
ea13583edd network: adapt to yesterdays libnm-glib api changes
That's what you get for complaining about inconsistent api...more work :-)
2011-03-16 07:31:01 -04:00
Matthias Clasen
d4e155a277 Network: Add a + button and make it do something
In the short term, cheat by bringing up nm-connection-editor.
In the future, we will do something better here.
The newly created connections do net get picked up in the list
of devices/connections yet.
2011-03-15 22:05:31 -04:00
Matthias Clasen
cf8e083b9b Network: Add Option buttons to allow editing connections
In the short term, we cheat here by bringing up nm-connection-editor
for an individual connection. This will be replaced by something
better in the future.
2011-03-15 21:30:44 -04:00
Matthias Clasen
e2a2d4f00e network: Refresh UI when active connections change
This makes us pick up vpn connection state changes.
2011-03-15 21:11:04 -04:00
Matthias Clasen
ea5f76247d Network: fix a refcounting bug with vpn settings
nm_connection_get_setting_by_name() does not return a reference,
so we have to get one ourselves.
2011-03-15 21:11:04 -04:00
Matthias Clasen
eeb6193248 network: add an on/off switch for vpn connections
The switch does successfully bring vpn connections up and down.
Updating the rest of the panel does not work yet.
2011-03-15 21:11:04 -04:00
Matthias Clasen
069c35d84e Network: fix an oversight in visibility handling
The last change made the VPN header invisible by accident.
2011-03-15 20:12:58 -04:00
Matthias Clasen
41af4a3e42 Network: Get the correct VPN state
The connection that gets passed to NetVPN is not a state-carrying
NMActiveConnection, but just a configuration-carrying NmRemoteConnection.
So asking it for the VPN connection state is never giving us anything
interesting. Instead, we need to fish out the active connection
corresponding to the VPN config (if any), and get the state from there.
Still todo: state change notification.
2011-03-15 20:12:58 -04:00
Matthias Clasen
4081d83ca7 network: add a way to get the vpn connection object back
This will be needed to activate/deactivate vpn.
2011-03-15 17:20:54 -04:00
Matthias Clasen
3163675d85 network: fix a typo
Use an existing id for the proxy method model.
2011-03-15 16:34:30 -04:00
Matthias Clasen
6f916b00b9 network: Don't leak the remote settings
Instead, we keep it around; it will be useful later on.
2011-03-15 16:33:01 -04:00
Matthias Clasen
b160c1549b Network: Implement and show on/off switch for wireless/wimax
These map to nm_client_wireless/wimax_set/get_enabled.
2011-03-14 19:23:10 -04:00
Matthias Clasen
a320dc9303 Network: Add a device off switch
As seen in the mockups. This is currently hidden, until
I figure out how to wire this up properly.
2011-03-14 17:05:05 -04:00
Matthias Clasen
12591bbc2c Network: Fix label alignment
The DNS fields are wrapping, and need to be left-aligned to
look ok in that case.
2011-03-14 13:17:51 -04:00
Matthias Clasen
243c11712b Network: fix some alignment and focus issues
Make the wireless network combo focusable, but not editable.
Make all the proxy labels right-aligned and equal size.
There is still an overall size problem with the proxy page.
2011-03-12 15:50:40 -05:00
Matthias Clasen
bc34b87775 Network: Reinstate the proxy method model
Glade was playing tricks on me there.
2011-03-12 15:12:53 -05:00
Matthias Clasen
9f07f2b9be Network: Add mnemonics
Make the panel keynav friendly by setting up mnemonics for active
controls.
2011-03-12 15:02:58 -05:00
Matthias Clasen
ed5f4f5fdf Network: Add Option buttons
Following the design. These are currently hidden, until we have
something to show there.
2011-03-12 14:27:22 -05:00
Richard Hughes
ed04eaeb03 network: ensure we refresh the UI if coldplug devices are changed 2011-03-11 16:13:17 +00:00
Richard Hughes
3bee2844a7 network: use the new network-wired-disconnected icon
You need to build a gnome-icon-theme from git for this to work correctly.
2011-03-11 15:56:49 +00:00
Richard Hughes
96026dae34 network: do not show a speed of zero for any device 2011-03-11 15:53:54 +00:00
Richard Hughes
eeac17e226 network: display a different icon if the wired ethernet device is disconnected 2011-03-11 15:15:12 +00:00