Commit graph

343 commits

Author SHA1 Message Date
Richard Hughes
96f7cbae90 network: Return success from panel_set_notebook_page_for_object()
This is so we can run the panel with both old-style and new-style NetDevices
whilst we are migrating the device kinds.
2012-07-17 10:21:26 +01:00
Richard Hughes
e72194482e network: Remove some unused code 2012-07-17 10:21:26 +01:00
Richard Hughes
3c2a09294c network: Set the device properties at construct time
We need this for more complicated devices that need to contact other daemons,
for instance ModemManager.
2012-07-17 10:21:26 +01:00
Richard Hughes
cd765a1267 network: Export net_device_get_find_connection() so it can be used by future network devices 2012-07-17 10:21:26 +01:00
Richard Hughes
5d17320817 network: Add a GObject nm-device property for NetDevice 2012-07-17 10:21:26 +01:00
Richard Hughes
f9e2828f77 network: Add a NMRemoteSettings property to NetObject for future use 2012-07-17 10:21:26 +01:00
Richard Hughes
b48fc1b65c network: Add a GCancellable property to NetObject for future use 2012-07-17 10:21:26 +01:00
Richard Hughes
7fcc4666ac network: Set the correct page when using mobile broadband devices 2012-07-17 10:21:13 +01:00
Richard Hughes
e61ec214b0 network: Ensure to install the VPN .ui file 2012-07-16 14:08:25 +01:00
Richard Hughes
0a98c5a921 network: Provide a vfunc for refreshing a NetObject 2012-07-12 17:29:47 +01:00
Richard Hughes
8384a0b741 network: Split the VPN parts from the .c and .ui file 2012-07-12 16:58:11 +01:00
Richard Hughes
ddabc6049f network: Add a vfunc so a NetObject can be deleted
We will only support this for VPN 'devices' but it seemed a cleaner abstraction this way.
2012-07-12 16:55:20 +01:00
Richard Hughes
eeecc61d05 network: Share a NMClient instance between NetObjects
Creating a NMClient is expensive and slow. This will be used in future code.
2012-07-12 16:35:06 +01:00
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
Richard Hughes
298489ee16 network: Add a boolean 'removable' property to NetObject for future use
Also add GObject getters and setters for the other two properties.
2012-07-12 14:00:40 +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
59b7500fb6 network: Don't try to show a wizard that failed to setup
This fixes a critical warning when mobile-broadband-provider-info isn't
installed into the correct prefix.
2012-06-28 13:41:33 +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
f6838df0c5 network: Make buttons stay put
When switching between devices, the Options buttons were jumping
up and down. This patch makes them stay put in the lower right corner.

The patch also removes a bunch of glade placeholder gunk from the
ui file.

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

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:42:06 +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
398ca18a71 network: Sort Wireless first
This is the most common case, and is the page we want to end up
on when we're coming from the shell menu.

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

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:38:05 +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
Matthias Clasen
22fd0dedda network: Add mnemonics
The Create dialog was missing mnemonics for several controls.

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

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:36:02 +01:00
Matthias Clasen
fd8ca81f8b network: Add a mnemonic for 'Forget Network'
https://bugzilla.gnome.org/show_bug.cgi?id=671879

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:35:56 +01:00
Cosimo Cecchi
cde88dca90 network: fix packing order of children in the service dialog
The heading should be packed at the top, before the combobox.

https://bugzilla.gnome.org/show_bug.cgi?id=674498
2012-06-11 09:48:58 -04: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
04fdb2b456 network: Don't resize the panel when switching network types
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=671482
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
Cosimo Cecchi
b97782616e network: fix huge inline toolbar icons
Apparently GtkBuilder doesn't like too much <style> sections interleaved
among <property> tags.
2012-02-29 18:31:01 -05:00
Richard Hughes
c162258d23 network: Make the bottom button alignments match the mockups 2012-02-08 14:45:47 +00: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
552d994300 network: rework the UI file to be more acceptable to glade 2012-02-08 14:45:47 +00:00
Richard Hughes
7a1472e8b5 network: use some new property names in the UI file
I want to reduce the diffstat noise with new versions of glade.
2012-02-08 14:45:46 +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
Florian Müllner
4cd7b6c6dc .desktop: Drop prefix from X-GNOME-Keywords
The field has now been included in the spec, so use the standardized
name.
2011-12-19 16:26:40 +01:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +00:00
Matthias Clasen
57a1099b24 network: Make tabbing through the proxy page work 2011-11-03 14:06:08 -04:00