Commit graph

58 commits

Author SHA1 Message Date
treysis
5a18b369c6 Network: Show all IPv6 addresses for an interface
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1300
2021-05-12 14:17:52 +12:00
Robert Ancell
551d72280b network: Stop using deprecated nm_device_*_get_hw_address
There is a general nm_device_get_hw_address which has been available since
NetworkManager 0.9.10.
2020-11-08 22:41:40 +00:00
Robert Ancell
0197654177 network: Move helper functions into panel-common.c 2019-11-06 10:16:40 +13:00
Robert Ancell
4dbea87109 network: Remove unused includes 2019-10-22 20:11:45 +00:00
Robert Ancell
7f410ee1c6 network: Remove helper functions
They're not complex enough or used in enough places to warrant keeping.
They can be better refactored in the classes that use them.
2019-10-22 20:11:45 +00:00
Robert Ancell
75b4e5e061 network: Simplify helper function 2019-10-22 20:11:45 +00:00
Robert Ancell
f03ae7ff93 network: Move common code UI into each widget using it
It was only used twice and better managed in the actual widgets.
2019-10-22 20:11:45 +00:00
Robert Ancell
9b1226aea5 network: Remove helper function with minimal value
This can be more easily optimised away in the modules that use it.
2019-10-22 20:11:45 +00:00
Robert Ancell
4100c69d9c network: Move panel properties into GtkBuilder files 2019-10-22 20:11:45 +00:00
Robert Ancell
b331d75df5 network: Rename widget IDs to standard names 2019-10-22 20:11:45 +00:00
Robert Ancell
4955371660 network: Pass widget references rather than relying on names
The existing code relied on using GtkBuilder, which will no longer work when we
switch to GtkTemplate.
2019-10-22 20:11:44 +00:00
Robert Ancell
bf8b8f52b7 network: Remove an unnecessary goto 2019-10-01 14:52:13 +13:00
Robert Ancell
57d7a79034 network: Pass widget references rather than relying on names
The existing code relied on using GtkBuilder, which will no longer work when we
switch to GtkTemplate.
2019-10-01 14:47:23 +13:00
Robert Ancell
1d43f4c0f5 network: Simplify function 2019-10-01 14:46:14 +13:00
Robert Ancell
3c32ee72ea network: Remove two common functions that are more simply done inside the few cases that use them
The existing code relied on using GtkBuilder, which will no longer work when we
switch to GtkTemplate.
2019-10-01 12:52:42 +13:00
Robert Ancell
6211337ad6 network: Make function private 2019-10-01 12:31:05 +13:00
Robert Ancell
87f02de5b7 network: Remove unused functions 2019-10-01 12:28:35 +13:00
Robert Ancell
de84f7e344 network: Use g_autofree for strings 2019-09-13 14:20:50 +12:00
Adrien Plazas
e4de2f5a09 network: Make the rows adaptive
This factorizes the row creation a bit and normalizes the margins and
spacing, reducing the required width. This also makes labels like row
titles and descriptions ellipsizable so the rows can reach narrower
widths.
2019-09-09 22:25:23 +00:00
Benjamin Berg
2c95c6a5d0 network: Include the connection title in the sort string
The list of networks is sorted by connection type. If a user has e.g. a
lot of VPN connections, then the unsorted list is hard to browse.
To fix this, include the title of the connection in the sort order and
ensure the list is kept sorted when a title is changed.

Reported-by: Oliver Haessler <oliver@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=778685
2017-05-17 15:14:10 +02:00
Bastien Nocera
9183d34947 network: Port to libnm 1.2
We also remove support for WiMAX (now unsupported by NetworkManager),
and InfiniBand (Enterprise feature), and the use of
the deprecated NM_SETTING_WIRELESS_SEC property.

With help from network-manager-applet patches by Jiří Klimeš and
Dan Winship.

https://bugzilla.gnome.org/show_bug.cgi?id=765910
2016-05-27 18:23:33 +02:00
Andrew Cowie
ad6a00ae16 network: Elipsize device metadata fields
Excessively long metadata fields cause the the control-center panel to
blow out to wider than screen width. Probably the right thing is to
limit the allocation to the device detail pane from somewhere up the
stack, but for now, enable ellipsizing and set an max-width to
constrain the width of things which are there just for information
anyway; true values are available in the edit dialog.

Closes #759766.

Signed-off-by: Andrew Cowie <andrew@operationaldynamics.com>
2016-01-15 16:29:26 +01:00
Bastien Nocera
3de071f8e3 network: Fix network icon names for newer versions
network-wireless-signal-excellent and network-cellular-signal-excellent
don't exist in non-symbolic variants anymore, so use the fallback
names instead.

https://bugzilla.gnome.org/show_bug.cgi?id=695480
2014-07-24 13:00:35 +02:00
Matthias Clasen
476239291b network: Use a network-cellular icon for mobile broadband
https://bugzilla.gnome.org/show_bug.cgi?id=695034
2013-03-04 21:48:18 -05: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
15baea4720 network: display "device state reason", and remove duplicate code
For disconnected/unavailable devices, show the localized
NMDeviceStateReason next to the localized NMDeviceState (and not in
the tooltip). Also, move the code to do this into panel-common rather
to save some duplication.

https://bugzilla.gnome.org/show_bug.cgi?id=676117
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
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
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
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
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
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
9e5a8eb5c8 network: Rename "Wireless" to "Wi-Fi" in the UI
We support multiple kinds of wireless networks; clarify which kind
we're talking about here.

Also, add "Wi-Fi" and "Wifi" to the desktop file search keywords
(leaving "Wireless" there as well).

https://bugzilla.gnome.org/show_bug.cgi?id=677143
2012-10-11 09:22:34 +02:00
Matthias Clasen
a04445ebd7 network: Remove one more reference to the subnet widgets 2012-09-13 15:50:48 +01:00
Matthias Clasen
aec8cdd7f1 network: Don't show subnet for wired either
We don't show it for wifi details, and it is causing ugly warnings
from the setting code.

At the same time, make all selectable labels on the wired page
focusable as well, to be consistent with wifi.
2012-09-13 15:50:47 +01:00
Matthias Clasen
518efcda09 network: Start handling disconnected APs correctly
When showing the details for an in-range, but not active access
point, we were just always showing details for the currently
active connection. This commit starts to sort things apart.
2012-09-13 15:50:44 +01:00
Richard Hughes
c0d771c277 network: Don't show a blank name server label in the IP overview 2012-07-30 10:03:04 +01:00
Richard Hughes
763788894c network: Don't show the NULL address in the IP overview 2012-07-30 09:59:13 +01:00
Richard Hughes
5644bd6e62 network: Add panel_set_device_widgets() to the widget common code
We can use this from the different NetDevice types, and once all the devices are
converted to actual NetDeviceFoo-style objects we can remove the legacy code in
cc-network-panel.c
2012-07-20 09:31:11 +01:00
Richard Hughes
00c51443ae network: Add some more widget setting common code 2012-07-17 16:56:59 +01:00
Richard Hughes
f4c13e835b network: Move setting the device header pairs to common panel code
This is yet another step to splitting out the other devices types.
2012-07-17 16:56:59 +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
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
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
c93c35aef9 Network: Adjust wording of VPN status messages too 2011-03-16 21:36:37 -04:00
Matthias Clasen
67241cc102 Network: adjust status strings
Make the strings match what the shell network menu shows
more closely.
https://bugzilla.gnome.org/show_bug.cgi?id=644962
2011-03-16 19:13:45 -04:00
Richard Hughes
3bee2844a7 network: use the new network-wired-disconnected icon
You need to build a gnome-icon-theme from git for this to work correctly.
2011-03-11 15:56:49 +00:00
Richard Hughes
eeac17e226 network: display a different icon if the wired ethernet device is disconnected 2011-03-11 15:15:12 +00:00