Commit graph

167 commits

Author SHA1 Message Date
Piotr Drąg
a61cbccf46 network: Remove spaces before question marks 2011-06-06 16:24:07 +02:00
Matthias Clasen
03b2a21e7d Network: Use the 'pretty hostname' for hotspots
Also, prevent crashes when nm_active_connection_get_devices()
decides to return NULL instead of an array.
2011-05-26 20:22:34 -04:00
Matthias Clasen
a7c3024998 Network: Improve wording of warnings
Also, add a warning when stopping hotspots, too, and consequently
add the dots back to the stop button as well.
2011-05-26 18:47:27 -04:00
Matthias Clasen
24c320a2c3 Network: put the dots back in the hotspot button
After all we are showing a dialog now, sometimes...
2011-05-26 17:42:14 -04:00
Matthias Clasen
0273e3b926 Network: disable the hotspot button when the device is off 2011-05-26 17:34:56 -04:00
Matthias Clasen
fea89403bf Network: Add warning dialogs
We warn if there is no connection to the internet (questionable
to create a hotspot in that case) or if creating the hotspot
would drop the default connection to the internet (ditto).
2011-05-26 17:19:58 -04:00
Matthias Clasen
b8529164d6 Network: prevent a possible crash
Some of the settings may be NULL when we call is_hotspot_connection()
on random connections. No need to crash then...
2011-05-26 17:16:54 -04:00
Matthias Clasen
1b60a6fd6b Network: Remove ellipses from hotspot buttons
There's no dialogs anymore...
2011-05-26 11:59:16 -04:00
Matthias Clasen
b3067539f6 Network: simplify security string for hotspots
Dan recommends that we do not discriminate between WPA and WPA2,
so we don't have to bother with showing multiple strings at all
anymore, it is just None or WEP or WPA now.
2011-05-26 11:57:49 -04:00
Matthias Clasen
97982f395e Network: fix the build 2011-05-26 07:05:00 -04:00
Matthias Clasen
64e94a0adb Implement network sharing
This is an implementation of network sharing (aka 'Hotspot').
The new 'Use as hotspot' button lets you use a wifi device
as a hotspot for sharing network connections with others.

Currently, the panel generates a ssid based on the hostname,
sets the security to WEP, and generates a random key. These
parameters can be edited afterwards.

It is currently not possible to show how many connections
are using the hotspot. Apart from this, the implementation
is pretty much complete.
2011-05-26 06:47:27 -04:00
Matthias Clasen
d4b88f12a6 Network: refresh ui in an idle
This seems a lot safer than doing it directly from all kinds
of callbacks.
2011-05-25 08:54:35 -04:00
Matthias Clasen
c390d4f36d Network: use the correct condition for the option button
The button needs a connection to edit; so set the sensitivity
based on the existence of a connection.
2011-05-25 08:33:56 -04:00
Matthias Clasen
e5675435c2 Network: avoid a possible crash
When there are no active connections, nm_device_get_active_connections
returns NULL.
2011-05-25 07:05:44 -04:00
Matthias Clasen
f9a186a272 Network: fix the wpad warning
Due to size allocation changes in GTK+, wrapping labels without
a minimal width now become very high. So we need to set a reasonable
width-chars value to ensure the label shows up.
2011-05-24 20:03:50 -04:00
Matthias Clasen
f93fee0121 Network: use the new sidebar-list icon size
Also add some padding. The designers like it like this.
2011-05-20 12:32:18 -04:00
Matthias Clasen
685b5ebb9b Fix a11y/keynav issue in the network panel
The mnemonic for the 'Network name' combo was not working.
2011-05-15 20:20:19 -04:00
Matthias Clasen
4df13eb8f7 Properly select the active ap
Comparing by object id does not work here, since there is no
guarantee that the object id will still be present in the array
after we did filter the list by strongest-per-ssid. Instead,
compare the ssid.
https://bugzilla.gnome.org/show_bug.cgi?id=649934
2011-05-12 07:06:58 -04:00
Christian Persch
1f00e38838 network: Use g_settings_get_child to construct the proxy settings
Bug #645439.
2011-05-07 18:14:56 +01:00
Richard Hughes
03d17a95c4 network: add a 'Other...' entry to the wireless combobox so users can connect to hidden access points
A suprising number of people need this to be able to get onto their wireless
network. This is also a Fedora blocker if that matters.

This patch also adds a string. I don't feel there is a way around it, although
we could steal the translations from another project. I think using a real word
is better than displaying a blank entry or a picture or something. I dunno.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=645002
2011-04-10 10:31:48 +01:00
Richard Hughes
3a0bb1c7f2 network: use the correct widget name for the IP address of the mobile broadband device. Fixes #646837 2011-04-06 10:07:15 +01:00
Richard Hughes
81799838a3 network: do not assert if a widget is missing, instead print a critical warning with the widget name
This helps us debug bugs like #646837

I've also asked the designers to clarify what entries we should show on the mobile broadband page too.
2011-04-06 10:06:12 +01:00
Matthias Clasen
3256adcb7e Network: Make creating vpn connections work again
Somehow the 'Create' button lost its action id.
Don't trust glade on these files...
2011-04-02 18:12:00 -04:00
Matthias Clasen
23f239e461 Network: display more detailed status for unavailable devices
If NetworkManager knows that firmware is missing, say so.
This matches recent changes in the gnome-shell network menu.
It adds one new string, "Firmware missing", for which I have
pulled existing translations from the similar "firmware missing"
string in gnome-shell.
https://bugzilla.gnome.org/show_bug.cgi?id=646027
2011-04-01 00:42:13 -04:00
Matthias Clasen
ecd99dc1f3 Network: reset the network name combo when disconnected
While we are not connected, showing the name of an access point
in the combobox is misleading.
https://bugzilla.gnome.org/show_bug.cgi?id=646031
2011-03-31 22:27:44 -04:00
Richard Hughes
f3d02cd0e8 network: Do not add bluetooth devices to the panel to avoid asserting the control-center
There's no mockup for bluetooth devices, and it's not clear what any of the
buttons or sliders should do.
I'll actually wire up bluetooth devices for 3.2, but this at least fixes the
assert ready for 3.0.
2011-03-31 17:07:07 +01:00
Cosimo Cecchi
b3af71f37f network: hide the security cell renderer if there's no icon to display
This allows the mode renderer which is on the left to slide in and
replace it in case.

https://bugzilla.gnome.org/show_bug.cgi?id=646140
2011-03-29 14:58:55 -04:00
Cosimo Cecchi
44847a571c network: use symbolic icon for ad-hoc wireless connections
https://bugzilla.gnome.org/show_bug.cgi?id=646140
2011-03-29 14:58:55 -04:00
Richard Hughes
d5d0ec3b06 network: don't segfault the network panel if the user restarts NetworkManager with it open 2011-03-28 18:09:59 +01:00
William Jon McCann
8613d54e9a Network: Use grids for alignment instead of a huge set of size groups
https://bugzilla.gnome.org/show_bug.cgi?id=645772
2011-03-27 20:01:03 -04:00
Matthias Clasen
4576e48c19 Network: properly track vpn connection state
We were not listening for state changes on the ActiveConnection
objects representing actual connections, but only listened for
active connections appearing or disappearing. This caused
the VPN tab to get stuck on 'Authentication required' or similar
'intermediate' states until you manually switch tabs and back.

Also keep the switch from jumping back to off while the
vpn auth dialog is up, by adjusting the states we consider 'off'.
2011-03-27 20:00:00 -04:00
Matthias Clasen
b02b523c56 Network: Implement on/off switch for wired devices
This is to match the network menu, which also has an on/off switch
for wired devices.
2011-03-26 07:25:11 -04:00
Matthias Clasen
942ff4a9ad Network: Plug a memory leak 2011-03-26 07:25:11 -04:00
Matthias Clasen
759dbfd328 Network: show a padlock for 'secure' access points
This patch adds a trivial GtkCellRendererPixbuf subclass and
uses it to show a padlock icon for access points which have some
kind of security.
2011-03-25 18:20:40 -04:00
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