Commit graph

191 commits

Author SHA1 Message Date
Richard Hughes
c26e14518e network: Split the proxy parts from the .c and .ui file
A source file with 4k lines of code is not understandable, and the glade file
was becoming quite a challenge for glade.
To add more features we need to split things up just to keep them maintainable.

This is the first patch that just splits out the proxy bits. Other device types
will follow in the next few days.
2012-07-12 14:09:24 +01:00
Matthias Clasen
75e74cc09b network: Use g_clear_object where appropriate
Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-28 17:04:54 +01:00
Matthias Clasen
b154ebd1d6 network: Remove redundant returns
https://bugzilla.gnome.org/show_bug.cgi?id=678158

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-28 17:04:40 +01:00
Matthias Clasen
31cd509a75 network: Sort access points by strength
Keep the active network at the top, and 'Other' at the bottom.
the other access points are sorted by strength now.
https://bugzilla.gnome.org/show_bug.cgi?id=678505

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-28 13:54:13 +01:00
Matthias Clasen
dcb34090cc network: avoid crashes due to leftover signal handlers
The libnm objects can survive the disposal of the network panel.
If we don't disconnect the signal handlers on them, bad things
can happen. Use g_signal_connect_object to tie the life-cycle
of the signal handlers to the panel.
https://bugzilla.gnome.org/show_bug.cgi?id=677969

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-28 13:46:03 +01:00
Richard Hughes
6689012eb8 network: Show multiple connections in the mobile broadband panel
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=647170
2012-06-28 13:43:58 +01:00
Richard Hughes
f0b88883d0 network: Increase the amount of debugging for mobile-bb 2012-06-28 13:42:44 +01:00
Richard Hughes
fd059a2d14 network: Don't try to set the mobile broadband speed widgets
This fixes a critical warning when using mobile broadband adaptors.
2012-06-28 13:40:08 +01:00
Thomas Bechtold
806b3e0e13 network: Find connections specific MAC address set
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=677899

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-18 11:21:17 +01:00
Matthias Clasen
9efba451dc network: Make ap list more similar to the shell menu
Sort the strength and security indicators in the combo box
popup to be in the same order as the shell menu.

https://bugzilla.gnome.org/show_bug.cgi?id=677788

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:39:33 +01:00
Matthias Clasen
df77ca0883 network: Add mnemonic for Airplane mode
This was lost when the airplane mode switch moved up to the top.

https://bugzilla.gnome.org/show_bug.cgi?id=671879

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:36:06 +01:00
Dan Williams
8631717b3d network: don't crash on hidden SSIDs
APs that don't broadcast their SSID will return NULL from
nm_access_point_get_ssid() (since that's easier to check in C
using an if statement than returning a zero-length GByteArray).
Thus the code shouldn't try to dereference the SSID byte array
since it could be NULL.

But in fact, the panel shouldn't be showing hidden APs anywhere
in the UI, since the user needs to manually enter the SSID to
connect to it anyway.  So just ignore hidden APs like nm-applet
does.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-07 13:08:53 +01:00
Richard Hughes
ec27900578 network: Allow configuring wired network devices when not connected
This prevents the chicken-and-egg problem as described in #653296 by launching
nm-connection-editor for the inactive connection for the device.

This only works when there is one possible connection for the device, which is
helpfully typical for wired ethernet devices.

Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=653296
2012-05-30 14:47:02 +01:00
Richard Hughes
160697df6c network: Do not print a critical warning when NetworkManager is restarted
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=676369
2012-05-30 12:39:48 +01:00
Florian Müllner
1bbe93cd0c network: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
Thomas Bechtold
1f24b178ac network: show device state reasons (Closes:bgo#676117)
Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-05-16 09:54:04 +01:00
Richard Hughes
2806e68657 Fix a crash in the network panel by disconnecting idle sources
If you open and close the network panel again and again at speed, you can trigger a crash.
2012-03-26 17:48:44 +01:00
Richard Hughes
cd48bba555 network: Remove the unused unlock button
It's wrecking the bottom padding alignment and is in the header in the mockups...
2012-02-08 14:45:47 +00:00
Richard Hughes
a34184910a network: Add the 'Forget Network' button in the wireless page 2012-02-08 14:45:46 +00:00
Richard Hughes
d1a5af0818 network: Only show the flight mode toggle when there are wireless devices 2012-01-24 15:49:06 +00:00
Richard Hughes
1b74ddb8c5 network: Move the 'Airplane Mode' switch up into the shell header
This closer matches the mockups done by Lapo.
2012-01-09 15:24:57 +00:00
Richard Hughes
7923b995b7 network: Move the device speed up to the device header
This makes the panel closer match the new mockup provided by the design team.
2012-01-09 10:20:45 +00:00
Gary Ching-Pang Lin
45a9b2cb1f network: show wireless dialog even if there is no active AP
The network panel ignored the request of showing the wireless
dialog if there is no active AP, and the user was not able to
set up the advanced wireless settings, such as WPA-EAP settings.

https://bugzilla.gnome.org/show_bug.cgi?id=661526
2011-10-12 15:40:23 +01:00
Rodrigo Moya
c008829c5e network: Bind HTTP host entry to the 'host' setting in GSettings 2011-09-19 16:05:21 +02:00
Alban Browaeys
961fe7b496 network: a segfault was introduced when assigning to args.
Instead of assign a potential null to args it was assigned to **args
(which is uninitialized at this point).

Fix commit 72b9db71c8

https://bugzilla.gnome.org/show_bug.cgi?id=658670
2011-09-09 19:11:43 +01:00
Bastien Nocera
72b9db71c8 network: Fix memleak when argv changes 2011-09-08 17:00:59 +01:00
Giovanni Campagna
d26fb9694d network: show wireless dialogs when asked
When invoked with certain arguments, show the wireless and 3g
dialogs from libnm-gtk. Previously they were provided by nm-applet,
but now gnome-shell conflicts with it and it makes sense anyway
to have one place for network configuration. Also added a "show-device"
command, that just selects a device in the tree view.

https://bugzilla.gnome.org/show_bug.cgi?id=657093
2011-09-05 18:07:52 +02:00
Richard Hughes
d62e0da9db network: Explicitly unset 'use-same-proxy' as there's no UI for that
This fixes proxy selection for people that have upgraded from GNOME 2.

Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=657235
2011-09-01 14:29:46 +01:00
Richard Hughes
8055e73642 network: Set the org.gnome.system.proxy.http 'enabled' key if the user sets a HTTP proxy 2011-09-01 14:24:12 +01:00
Bastien Nocera
147713ef84 network: Fallback to GNOME as a hotspot name
If the hostname of the machine is empty for some reason.
2011-08-26 21:27:06 +01:00
Jiří Klimeš
382509986a network: Show VPN type and info in panel
For all the VPN types

https://bugzilla.gnome.org/show_bug.cgi?id=657303
2011-08-26 13:32:22 +01:00
Jiří Klimeš
e04d0bb787 network: Fix updating VPN info when edited
- Updating VPN info
- Removing 'setting' private member from NetVpn object, because settings are
  replaced when connection is updated (libnm-glib/nm-remote-connection.c).

https://bugzilla.gnome.org/show_bug.cgi?id=657303
https://bugzilla.redhat.com/show_bug.cgi?id=723489
2011-08-26 13:24:39 +01:00
Jiří Klimeš
8adec15322 network: Fix display of IP info for some configs
for static and PPP configurations

https://bugzilla.gnome.org/show_bug.cgi?id=657303
2011-08-26 13:22:57 +01:00
Bastien Nocera
91db9ddb41 network: Fix possible double-free
operator_name_safe is attached to an object, and freed
when the object goes away, so don't free it here.
2011-08-26 13:21:25 +01:00
Jiří Klimeš
31f975996e network: Mobile broadband bug fixes
Fix On/off switch, options buttons and info display

https://bugzilla.gnome.org/show_bug.cgi?id=657303
2011-08-26 13:21:17 +01:00
Mathieu Trudel-Lapierre
9c6613700f Default to g_get_host_name if pretty hostname call failed 2011-08-08 18:19:23 +02:00
Rodrigo Moya
b2be7a7b4c network: Kill compilation warnings 2011-07-05 13:13:04 +02:00
Bastien Nocera
b76013bd1d network: Avoid uninitialised variable 2011-06-21 15:36:43 +01:00
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
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
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