Commit graph

189 commits

Author SHA1 Message Date
Thomas Bechtold
b5335bf2e7 network: Plug memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=693879
2013-02-15 13:45:28 +01:00
Aleksander Morgado
0225d1a9e7 network: include support for the 'ModemManager1' interface
The control-center will automatically detect whether the modems exposed by
NetworkManager are from the old or the new interface, and if they are from the
new one it will use the libmm-glib support to gather the required information
from them.

The new ModemManager1 interfaces are exposed by ModemManager >= 0.7; and provide
lots of new functionalities, like:
  * Improved connection bearer handling (e.g. multiple bearers at the same time)
  * Location support (GPS, LAC/CI, CDMA BS...)
  * Full SMS support through the new 'Messaging' interface.
  * ...
2013-02-12 17:43:02 +01:00
Aleksander Morgado
f094cc0e6e Revert "network: Allow compiling against NM 0.9.6"
This reverts commit ec704ab62f.

This will effectively bump again the NM requirement to 0.9.7.995.
2013-02-12 17:42:59 +01:00
Dan Winship
e3c9f53a09 network: fix warnings when virtual connections exist
Fix the call to nma_utils_disambiguate_device_names() to filter out
any NULL NMDevices, to avoid warnings.
2013-02-11 12:46:49 -05:00
Matthias Clasen
7f13d109d7 network: Sort out symbolic icons
In bug 689638, the designers only asked for the list icons
to be symbolic, not the big icons in the page headings. The
current code was failing on both ends: virtual devices like
vlan still had non-symbolic icons in the list, and several
pages (e.g mobile and proxy) had symbolic icons in the headings.

https://bugzilla.gnome.org/show_bug.cgi?id=693001
2013-02-06 17:54:39 -05:00
Dan Winship
ec704ab62f network: Allow compiling against NM 0.9.6
NM 0.9.7 has still not been released, even as a tarball, so allow
compiling against 0.9.6 (without certain bits of new functionality).

https://bugzilla.gnome.org/show_bug.cgi?id=691721
2013-02-06 16:06:01 -05:00
William Jon McCann
e2094d8075 Use symbolic icons for network devices
This is consistent with the guideline to use symbolic icons for
classes and reserve full color icons for "things" like apps, people,
documents, pages, etc.

It is also consistent with how these devices are displayed in the
network menu, notifications, and dialogs.

https://bugzilla.gnome.org/show_bug.cgi?id=689638
2013-01-30 19:50:57 +01:00
Dan Winship
52d28579d2 network: add "virtual device" support, for bonds, bridges, and vlans
Bond, bridge, and VLAN devices may not actually exist until their
connections are brought up. So for those types, create device items
(of type NetVirtualDevice or a subclass) as soon as we see the
NMConnection, and then watch for the NMDevice being added later.

https://bugzilla.gnome.org/show_bug.cgi?id=677145
2013-01-30 13:05:34 -05:00
Dan Winship
8a52138cf6 network: add integrated "Add New Connection"
New VPN connections are created within the control center; other types
currently hit the nm-connection-editor fallback.

https://bugzilla.gnome.org/show_bug.cgi?id=674498
2013-01-30 13:05:34 -05:00
Dan Winship
8cfe8d10ba network: add VPN support to the connection editor
Unfortunately, the VPN plugins provide their own .ui files for their
editor pages, so we can't make them look competely GNOME-3-ish. But
the code does try to fix them up a little bit by realigning the
labels.

vpn-helpers.[ch] is nearly identical to network-manager-applet's,
but eventually this code will move into libnm-gtk.

https://bugzilla.gnome.org/show_bug.cgi?id=691285
2013-01-30 13:05:34 -05:00
Matthias Clasen
c8e1551a22 network: Update device icons on state changes
The wired icon depends on the state, so should update it
when the state changes.
2013-01-30 13:05:33 -05:00
Cosimo Cecchi
57de0ab019 network: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:06 +01:00
Jasper St. Pierre
23e51495ee network: Don't reference CcNetworkPanel directly from some helper code
All we need is the toplevel, here, so pass that in directly.

https://bugzilla.gnome.org/show_bug.cgi?id=690086
2012-12-13 11:55:33 -05:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Bastien Nocera
b831fcad33 network: Avoid type clashes with the Bluetooth panel
Done with:
sed -i -e 's/RfkillGlib/CcRfkillGlib/g'         \
	    -e 's/RFKILL_GLIB/CC_RFKILL_GLIB/g' \
	    -e 's/rfkill_glib/cc_rfkill_glib/g' \
	    -e 's/RFKILL_TYPE_GLIB/CC_RFKILL_TYPE_GLIB/g' \
	    rfkill-glib.[ch] cc-network-panel.c

This would need to be done when we reset the copy/paste from
gnome-bluetooth.
2012-11-09 11:50:23 +01:00
Bastien Nocera
b72c1c5541 network: Make sure Airplane mode switch everything off
And not just wireless. We need to use /dev/rfkill directly
to make sure that all the devices (3G, GPS, Bluetooth, etc.) get
switched off correctly when airplane mode is on.

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

Conflicts:
	panels/network/cc-network-panel.c
2012-11-09 11:50:22 +01:00
Bastien Nocera
0d180857ab network: Make sure flight mode is always visible
Because it's not just about disabling the network, it needs
to disable a host of other wireless devices, and those need to
be blocked even if you end up plugging them into your computer.

Conflicts:
	panels/network/cc-network-panel.c
2012-11-09 11:50:22 +01:00
Cosimo Cecchi
fdb42333d1 network: don't add the header widget in an idle
Add it in constructed() instead, since we need the value of the
construct-only shell property in order for it to work.

https://bugzilla.gnome.org/show_bug.cgi?id=687864
2012-11-07 12:32:21 -05:00
Dan Winship
8ba8f2e033 network: add support for showing bond slaves
https://bugzilla.gnome.org/show_bug.cgi?id=677147
2012-10-22 14:55:07 +02:00
Dan Winship
cb2eacdfd4 network: minimal support for unrecognized device types
https://bugzilla.gnome.org/show_bug.cgi?id=677151
2012-10-22 14:52:34 +02:00
Matthias Clasen
85dbe01725 network: Fix 8021x connections
We were always throwing away requests to connect to 8021x
APs, due to missing braces.

https://bugzilla.gnome.org/show_bug.cgi?id=686244
2012-10-17 11:34:40 +02:00
Dan Winship
63756458b2 network: disambiguate devices of the same type
If there are multiple devices that would end up with the same name in
the device list, disambiguate their names via new libnm-gtk API.

https://bugzilla.gnome.org/show_bug.cgi?id=677143
2012-10-11 09:22:35 +02:00
Dan Winship
71c0325f28 network: Factor out most of NetDeviceWired, create NetDeviceEthernet
Rename NetDeviceWired to NetDeviceEthernet, but split out most of the
code into a new NetDeviceSimple superclass that can later be used for
other device types that we provide only minimal UI/support for.

https://bugzilla.gnome.org/show_bug.cgi?id=677143
2012-10-11 09:22:35 +02:00
Bastien Nocera
c358506491 network: Verify command-line arguments
To avoid invalid bug reports ;)
2012-10-03 14:49:23 +02:00
Bastien Nocera
3c973b587d network: Add debug for argv handling 2012-10-01 23:05:29 +02:00
Bastien Nocera
d941ca15af network: Fix possible incorrect exit of the loop
A bug fix for the Proxy page handling
2012-10-01 23:03:54 +02:00
Bastien Nocera
813843cf85 network: Fix possible crasher when handling argv prop
When looking for a matching device, we might end up checking
for the proxy page's nm-device, which it obviously doesn't have.
2012-10-01 21:16:05 +02:00
Bastien Nocera
ccc3f0bf3c network: Don't resize the panel or the wifi list 2012-09-28 12:21:25 +02:00
Bastien Nocera
194d28ae50 network: Simplify access to the device treeview 2012-09-28 11:24:11 +02:00
Bastien Nocera
a11ad3bed1 network: Handle argv property every time it changes
Newer version of network-manager-applet required to avoid the
run-time warnings though.

https://bugzilla.gnome.org/show_bug.cgi?id=684983
2012-09-28 11:14:33 +02:00
Bastien Nocera
dc559e3a99 network: Clean up all args when done handling them 2012-09-27 20:26:50 +02:00
Bastien Nocera
38cbe1fb16 network: Add function to clean up the argv property 2012-09-27 20:23:57 +02:00
Matthias Clasen
c3d00a6c44 Make connecting to Enterprise WPA work again
gnome-shell relies on being able to call
gnome-control-center network connect-8021x-wifi <DEVICE> <AP>
This was broken in the big refactoring of the wifi panel
last cycle. Bring it back.
2012-09-22 11:49:34 -04:00
Dan Winship
ecdb1d8477 network: ignore unrecognized device types
rather than showing a blank line in the device-type list that doesn't
do anything.

https://bugzilla.gnome.org/show_bug.cgi?id=678210
2012-08-22 10:32:59 -04:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Richard Hughes
125da07889 network: Remove some dead code from the conversion 2012-07-23 10:43:02 +01:00
Richard Hughes
b06bb9e5f3 network: Split the wifi device from the .c and .ui file 2012-07-23 10:14:05 +01:00
Richard Hughes
de8993eddb network: Allow NetObjects to get the main panel object so they can show modal dialogs 2012-07-20 09:31:12 +01:00
Richard Hughes
26b5169bee network: Split the mobile broadband device from the .c and .ui file 2012-07-20 09:31:12 +01:00
Richard Hughes
a808633484 network: Split the wired device from the .c and .ui file 2012-07-20 09:31:11 +01:00
Richard Hughes
6de161617a network: Fix the VPN information my setting the connection at object construction time 2012-07-17 14:17:11 +01:00
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
7fcc4666ac network: Set the correct page when using mobile broadband devices 2012-07-17 10:21:13 +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
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
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