Commit graph

461 commits

Author SHA1 Message Date
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
Cosimo Cecchi
0969b36a65 network: unfuzzy symbolic buttons and make them square
Use the 'image-button' style class to make symbolic buttons square
(as supported by latest Adwaita), and make sure to use the correct icon
size for all symbolics to avoid fuzzyness.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
2013-02-11 11:43:43 -05:00
Cosimo Cecchi
2acd6a5303 network: add some spacing between rows
In the IPv4/IPv6 pages the grid packing address controls has no spacing
at all.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
2013-02-11 11:43:43 -05:00
Cosimo Cecchi
c0242f2fb3 network: fix some alignment issues
If you click the sections in the left side treeview, some of the
elements in the right page headers will move a couple of pixels.
Also, since the WPAD warning label was always visible, the alignment of
the controls section in the Proxy page was suboptimal.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
2013-02-11 11:43:43 -05:00
Matthias Clasen
2de037d882 network: More consistent page headings
The vlan page (and other virtual devices) use network-simple.ui,
and the off switch in that pages heading was not centered relative
to the rest of the heading, as it is in other pages. This shows
up as the switch jumping up and down as you switch pages.

https://bugzilla.gnome.org/show_bug.cgi?id=693004
2013-02-06 20:19:13 -05:00
Matthias Clasen
28ea402af2 network: more consistent page headings
The new design has left-aligned page headings. Make it so for all
pages. The ones still centered were mobile, proxy and vpn.

https://bugzilla.gnome.org/show_bug.cgi?id=693003
2013-02-06 20:13:06 -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
f85aed9516 network: disable "Apply" in editor if connection hasn't changed
https://bugzilla.gnome.org/show_bug.cgi?id=692925
2013-02-06 16:20:27 -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
Matthias Clasen
7ab1752d97 network: Be consistent with symbolic icons
Virtual devices were still using non-symbolic icons, which made
them stick out like a bird of paradise in the device list.
2013-02-01 06:50:03 -05:00
Dan Winship
534ad36364 network: don't call inactive devices "Disconnected"
It's confusing to call an ethernet device "disconnected" when it is
plugged in but not in use. Just don't say anything instead.

Also, update the icon logic to show the "disconnected" icon in this
state, rather than the "connected" one, since it's confusing for the
icon to change even though the network connection hasn't been
activated.

https://bugzilla.gnome.org/show_bug.cgi?id=646029
2013-01-31 14:28:48 -05:00
Dan Winship
7b5ad4e389 network: fix some translator comments
They have to appear on the line immediately before the string or
they won't get picked up.

https://bugzilla.gnome.org/show_bug.cgi?id=646029
2013-01-31 14:28:48 -05:00
Piotr Drąg
3d2448516b network: Add context to ambiguous strings
It clashes with "Metric" as a measurement format in Region panel.
2013-01-31 18:36:40 +01:00
Rico Tzschichholz
b489f0d24c networks: fix build with -Werror=format-security 2013-01-31 14:56:47 +01:00
Tim Lunn
3c0af77abb network: fix make distcheck
https://bugzilla.gnome.org/show_bug.cgi?id=692896
2013-01-31 09:51:47 +01:00
Bastien Nocera
40714bac05 Revert "network: Fix build"
This reverts commit 3f8e94a3ce.
Bug was already fixed in 7a0887e222.
2013-01-30 20:12:13 +01:00
Bastien Nocera
3f8e94a3ce network: Fix build
../../../../panels/network/connection-editor/ce-page-ip4.c:32:39: fatal error: egg-list-box/egg-list-box.h: No such file or directory
2013-01-30 20:10:53 +01: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
Thomas Bechtold
da75f0f9f5 network: don't show options button on unmanaged interfaces
https://bugzilla.gnome.org/show_bug.cgi?id=692624
2013-01-30 19:46:25 +01:00
Dan Williams
fc6753e768 network: support new AP-mode hotspot functionality
Recent NetworkManager can create AP-mode hotspots instead of Ad-Hoc
mode ones, which are less compatible with mobile devices.  Do that
if NetworkManager and the device support it.

https://bugzilla.gnome.org/show_bug.cgi?id=686732
2013-01-30 13:39:16 -05:00
Dan Winship
7a0887e222 network: fix srcdir!=builddir build 2013-01-30 13:38:20 -05:00
Dan Winship
ebd863e714 network: add net_device_get_valid_connections() and use it everywhere
In addition to simplifying a bunch of places that were calling
nm_remote_settings_list_connections() +
nm_device_filter_connections(), this also ensures we filter out slave
connections everywhere (except when they are the active connection).

https://bugzilla.gnome.org/show_bug.cgi?id=677145
2013-01-30 13:05:34 -05:00
Dan Winship
7246b2b7ef network: fix two net-device-wifi leaks
https://bugzilla.gnome.org/show_bug.cgi?id=677145
2013-01-30 13:05:34 -05: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
184b94908e network: fall back to nm-connection-editor for unknown types
If asked to create or edit an unrecognized type, hand it off to
nm-connection-editor.

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
Bastien Nocera
a7c0a7ae64 network: Script the update from nm-applet 2013-01-30 13:05:34 -05:00
Matthias Clasen
3f629251a2 network: Make wired device off switch work better 2013-01-30 13:05:33 -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
Matthias Clasen
8b593e6ac8 network: Implement the new design for wired
This expands the connection editor to cover ethernet,
and adds support for multiple wired profiles.
2013-01-30 13:05:33 -05:00
Matthias Clasen
e5cc7d8011 network: Break out wifi details code and add editing support
This code is fairly independent of the rest, and we don't want
net-device-wifi.c to become too massive and unmaintainable.

The code in connection-editor/ is fairly similar to
nm-connection-editor, with some simplification because we
currently only edit wireless connections.

The code in wireless-security/ is almost a straight copy
of the same code in nm-connection-editor, with some changes
to the .ui files to make them fit better in the new design.
2013-01-30 13:05:33 -05:00
Matthias Clasen
66b1fe7b45 network: Use same wifi device name throughout
The device list is using the 'disambiguated' name that
nm is giving us. Use the same in the wifi page heading,
instead of hardcoding 'Wi-Fi'.
2013-01-30 13:05:33 -05:00
Matthias Clasen
d6e11db107 network: Fix hotspot switch getting out of sync
When the user switches the hotspot switch off, we present a
confirmation dialog which can be canceled. We do keep the
hotspot running in that case, but we forget to set the switch
back to 'on'. Fix that.
2013-01-30 13:05:33 -05:00
Matthias Clasen
96caacc136 network: Add status label and icon to wifi header
This is part of the design refresh for the network panel.
2013-01-30 13:05:33 -05:00
Matthias Clasen
9f86b03353 network: Add a spinner while connecting
This is part of the new listbox-based design for the
network panel.
2013-01-30 13:05:33 -05:00
Matthias Clasen
d0f0e8c99c network: no more cell renderers
Now that the list has been converted to a listbox, we don't
need any of these anymore.
2013-01-30 13:05:32 -05:00
Matthias Clasen
71dad5e98b network: Initial listbox conversion
This commit turns the main access point list into a listbox,
and moves out-of-range connections into a History dialog.
2013-01-30 13:05:32 -05:00
Matthias Clasen
44152f3b79 network: fix a small memory leak 2013-01-09 08:43:50 -05:00
Cosimo Cecchi
8d5f2908b5 panels: add --sourcedir=$(srcdir) when generating resource list
Like b8e93fb333 but for all panels.
2013-01-07 16:23:57 -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
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +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
Jasper St. Pierre
6b1ae0b18f network: Add a proper header guard to network-dialogs.h
We want to copy/paste this into g-i-s, so it needs to at least try
to be a decent library-ish thing.

https://bugzilla.gnome.org/show_bug.cgi?id=690086
2012-12-13 11:55:33 -05:00
Bastien Nocera
e419ee7d4e panels: Remove unused X-GNOME-Settings-Panel key 2012-12-11 17:09:04 +01: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
Jeremy Bicha
f325a5aae3 network: Use the proper Unicode ellipsis (…) instead of three dots 2012-12-03 09:18:15 -05:00
Aleksander Morgado
ec0f5b0b29 network: load IMEI and Operator Name also in LTE-only modems
Also bump NetworkManager required version to 0.8.995, which is when
'NM_DEVICE_MODEM_CAPABILITY_LTE' was introduced.

https://bugzilla.gnome.org/show_bug.cgi?id=688212
2012-11-23 17:33:19 +01:00
Aleksander Morgado
0c8f4451b7 network: ensure IMEI is displayed and reload Operator Name when it changes
The IMEI was not being properly displayed in the UI; the code would load it
reading 'EquipmentIdentifier' from ModemManager, but the UI wasn't getting
refreshed properly when that happened. So at the end, the IMEI was stored but
not shown. This patch fixes the issue, by reloading the UI element when the IMEI
is retrieved.

The same issue was happening with the Operator Code, with the additional issue
being that this property is meant to change whenever the registration info in
the modem changes. Therefore, we now listen to the 'RegistrationInfo' signal to
detect the changes and update the Operator Name when that happens.

https://bugzilla.gnome.org/show_bug.cgi?id=688211
2012-11-23 17:32:56 +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