velsinki
b76d6d0d00
ethernet: Add thousands separator to speed
...
Increases readability for speeds >= 1000 Mb/s.
Fixes #2804
2024-01-08 12:52:59 +00:00
Felipe Borges
294156c0f9
Drop most uses of deprecated gtk_style_context_add/remove_class
...
GtkStyleContext will be deprecated in gtk 4.10.
https://docs.gtk.org/gtk4/class.StyleContext.html
This preserves code blocks where additional GtkStyleContext operations
were used, such as gtk_style_context_save/restore.
2023-01-05 18:55:51 +00:00
Alessandro Bono
3182b7019f
net-device-ethernet: Don't check device iface name
...
If the interface name is wrong we shouldn't add the device in the first
place. The device comes from NM. If the interface name is wrong is a bug
at NM level.
2022-10-12 13:56:19 +02:00
Alessandro Bono
f6fa2fafec
net-device-ethernet: Prevent double free
...
Fixes: ee53bfd8b6
2022-10-12 13:56:19 +02:00
Luciano da Silva Ribas
ee53bfd8b6
network: Fixed Network profiles shown on wrong device
...
Added missing interface name during network profile creation.
Fixes #353
Fixed issues from code review
2022-10-12 08:43:22 +00:00
Robert Ancell
c23c56a0a1
network: Replace deprecated nm_device_disconnect
2022-06-20 02:29:39 +00:00
Christopher Davis
41cc608721
network: Use AdwPreferences{Page,Group} for network panel
...
Uses AdwPreferences{Page,Group} where possible.
net-device-ethernet has been changed into an
AdwPreferencesGroup subclass itself.
2022-02-04 17:54:25 +00:00
Christopher Davis
fcc1cb9da7
network: Adjust list styling and use GtkStack for ethernet
...
Previously we used an unstyled list for the network
connections, and we switched lists by using
GtkWidget:visbile.
This commit makes the connection list use boxed-list
styling, and adds a GtkStack.
2022-02-04 17:54:25 +00:00
Georges Basile Stavracas Neto
efbad6eb50
network: Port to GTK4
...
Boy this was hard.
To ease the pain of porting wireless-security to GTK4, add
a new WsFileChooserButton class that mimics the behavior of
a button that triggers a filechooser, as per the migration
guide suggests.
There were lots of GtkGrids, so the diff is particularly
horrendous. Sorry.
This needs serious testing before landing.
2021-12-14 22:34:21 -03:00
treysis
5a9fa905bc
network: display IPv6 gateway
2021-05-19 02:43:39 +00:00
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
treysis
ab443a02c1
network: Show DNS6 parameters in details and connection editor
...
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1231
2021-02-01 20:18:55 +00:00
Robert Ancell
8ded3d956f
network: Show spinner instead of delaying dialog
...
It's better to respond to the user immediately rather than delay the window opening.
2020-12-17 21:27:51 +00:00
Robert Ancell
a1e26cdac1
network: Set transient window from outside NetConnectionEditor constructor
2020-12-17 21:27:51 +00: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
Adrien Plazas
fd60c313df
Stop using HANDY_USE_UNSTABLE_API
...
It isn't needed anymore since libhandy 0.90.0.
2020-08-18 02:51:04 +00:00
Adrien Plazas
f2f188974d
Adapt to HdyActionRow changes
...
Its title property got dropped as it was coliding with the one it
inherits from HdyPreferencesRow, so use that one instead.
See https://gitlab.gnome.org/GNOME/libhandy/-/issues/258
2020-07-30 12:07:05 +00:00
Robert Ancell
5b14e16e9c
network: Connect signals with g_signal_connect_object in swapped form
2020-03-30 16:18:50 +13:00
Carlos Garnacho
23303245af
network: Keep a ref on NetDeviceEthernet while a edition dialog is open
...
Otherwise, invoking other panel (eg. through shell search, or CLI) and
closing the dialog will result in a crash, as the NetDeviceEthernet
object does no longer exist.
2019-11-29 11:22:56 +01:00
Robert Ancell
f335ed420f
network: Move widget code into GtkBuilder
2019-11-06 10:40:23 +13:00
Robert Ancell
39113f6a03
network: Move signals into GtkBuilder files
2019-11-06 10:40:23 +13:00
Robert Ancell
36449d60c7
network: Convert NetDeviceEthernet, NetDeviceBluetooth and NetDeviceMobile to GtkTemplate
...
This means NetObject is now obsolete and can be removed.
There was a GtkSizeGroup that the mobile settings used, but it isn't clear if
this is still relevant. It should be added back later if found to be (this code
is likely to be removed to make way for a dedicated mobile panel).
2019-11-06 10:40:23 +13:00
Robert Ancell
7e84af0d6d
network: Remove net_object_emit_changed
...
Turns out nothing was actually listening to it.
2019-11-06 10:40:23 +13:00
Robert Ancell
a39ebd5bda
network: Remove net_object_get/set_title
2019-11-06 10:40:23 +13:00
Robert Ancell
577762b60c
network: Remove NetDevice class
...
We don't need the NetObject/NetDevice class separation anymore
2019-11-06 10:16:40 +13:00
Robert Ancell
1c92cf4844
network: Remove net_device_get_nm_device
2019-11-06 10:16:40 +13:00
Robert Ancell
0197654177
network: Move helper functions into panel-common.c
2019-11-06 10:16:40 +13:00
Robert Ancell
29734b599c
network: Remove net_object_get_client
...
Better handled inside each object.
2019-11-06 10:16:39 +13:00
Robert Ancell
d7e17ca02f
network: Replace method with a helper function.
...
This removes a case where an object was being temporarily created just to use
this mehtod.
2019-11-06 10:16:39 +13:00
Robert Ancell
966cb97d45
network: Remove net_object_get_cancellable
...
Only a few objects need it
2019-11-06 10:16:39 +13:00
Robert Ancell
c74d26bf3a
network: Remove NetObject id property
...
This is better handled by comparing objects.
2019-11-06 10:16:39 +13:00
Robert Ancell
0b3ce1e15d
network: Remove net_object_get_panel
...
It was only being used for WiFi devices
2019-11-06 10:16:39 +13:00
Robert Ancell
76de0ce408
network: Simplify net_object_add_to_stack function
...
Except in the WiFi case it was creating a stack with one child.
All the non-WiFi cases had the same logic.
2019-11-06 10:16:39 +13:00
Robert Ancell
e90ed2df8a
network: Stop NetDeviceEthernet deriving from NetDeviceSimple
...
It overrode everything anyway.
2019-11-06 10:16:39 +13:00
Robert Ancell
d68cb14837
network: Remove unused virtual method
2019-11-06 10:16:20 +13:00
Robert Ancell
0c92c7b461
network: Replace g_object_new with constructors
2019-11-06 10:16:20 +13:00
Robert Ancell
6ab75da5c6
network: Use g_clear_pointer
2019-11-06 10:16:20 +13: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
708b1fdaf7
network: Use self variable name consistently
2019-10-22 20:11:45 +00:00
Robert Ancell
8b6e3fb736
network: Store widgets inside objects
...
This is a step towards replacing GtkBuilder with GtkTemplate
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
54f8fce47f
network: Connect signals in swapped form
2019-10-22 20:11:44 +00: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
4ba3a2c3d1
network: Fix small memory leak
2019-10-01 12:52:23 +13:00
Robert Ancell
e70610fe74
network: Use g_autoptr for unref code
2019-09-13 14:20:50 +12:00
Robert Ancell
de84f7e344
network: Use g_autofree for strings
2019-09-13 14:20:50 +12:00
Robert Ancell
01190db349
network: Use g_autoptr for GError handling
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
Adrien Plazas
91af270cce
connection-editor: Use GtkTemplate
2019-01-27 21:03:13 +00:00