Robert Ancell
e9973011b1
network: Remove unused enum
2019-11-13 15:12:46 +13:00
Carlo Caione
dfb54d0cad
network: Add option for connection sharing
...
Introduce a new IP{4,6} config method to allow sharing the default
network (usually the Internet) through the wired interface.
This is needed because the control-panel is lacking this feature backed
by nm and currently the only way to enable the connection sharing is by
using nm-connection-editor.
2019-11-13 15:12:01 +13:00
Carlo Caione
408f2775ec
network: cleanup: Rework disabled toggle button
...
The disable toggle button isn't special and there is no real need for it
to not be managed as all the other radio buttons.
2019-11-13 15:10:48 +13:00
Carlo Caione
5bcbe07299
network: cleanup: Avoid toggling button twice
...
After checking the method property of the connection settings we set the
disabled toggle button twice. One is enough.
2019-11-13 14:55:08 +13:00
Bastien Nocera
5bf43b92ac
wifi: Show the frequency used by the Wi-Fi network
...
https://bugzilla.gnome.org/show_bug.cgi?id=722550
2019-11-11 03:33:50 +00:00
Bastien Nocera
e0e085f525
wifi: Show Wi-Fi frequencies the hardware supports
...
https://bugzilla.gnome.org/show_bug.cgi?id=722550
2019-11-11 03:33:50 +00:00
Robert Ancell
1c4cf953d6
network: Remove unused function
2019-11-06 22:04:15 +13:00
Robert Ancell
7ea59681e9
network: Remove unused method
2019-11-06 22:04:15 +13:00
Robert Ancell
eb0bac874c
network: Convert CEPage widgets to GtkTemplate
2019-11-06 22:04:15 +13:00
Robert Ancell
9759121e7f
network: Convert CEPage from a class to an interface
2019-11-06 22:04:15 +13:00
Robert Ancell
c7f7022ed3
network: Remove unused variable
2019-11-06 22:04:15 +13:00
Robert Ancell
eb7372d83b
network: Move connection reference outside of CEPage
2019-11-06 22:04:15 +13:00
Robert Ancell
fc25e17a9f
network: Replace GtkNotebook with GtkStack
2019-11-06 22:04:15 +13:00
Robert Ancell
d163fb3f22
network: Remove unused GtkNotebooks and pages that are never shown
...
This has the side effect of allowing these pages to be shorter - the hidden
widgets forced the visible widgets to have a minimum height. If the old
behaviour is desired then this requires this to be fixed using a better
method.
2019-11-06 22:02:49 +13:00
Robert Ancell
db16aac28c
network: Remove empty files
2019-11-06 16:41:34 +13:00
Robert Ancell
d46579144e
network: Move GtkBuilder code from CEPage to its subclasses
2019-11-06 16:41:34 +13:00
Robert Ancell
eb4e124b04
network: Get connection editor root widget from a virtual method
2019-11-06 16:36:55 +13:00
Robert Ancell
f5949160c3
network: Move class property inside the two subclasses that use it
2019-11-06 16:36:55 +13:00
Robert Ancell
80a2af7f32
network: Remove unused GCancellable
2019-11-06 16:36:55 +13:00
Robert Ancell
3a86e6f162
network: Convert class property to a virtual method
2019-11-06 16:36:54 +13:00
Robert Ancell
4178b9404b
network: Remove unused signal signatures
2019-11-06 16:36:06 +13:00
Robert Ancell
d327e20a10
network: Replace GObject boilerplate with modern macros
2019-11-06 16:36:06 +13:00
Robert Ancell
0106a4ab90
network: Convert class property to a virtual method
2019-11-06 16:36:06 +13:00
Robert Ancell
413f23ec99
network: Rename virtual method to standard names
2019-11-06 16:33:07 +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
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
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
53f9249b83
network: Remove unused GtkBuilder IDs
2019-10-22 20:11:45 +00:00
Robert Ancell
927f0f7954
network: Remove unused widgets
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
d549c9e7bd
network: Move non-shared code into the one module that uses it
2019-10-22 20:11:44 +00:00
Robert Ancell
f556af6e67
network: Move includes to correct file locations
2019-10-22 20:11:44 +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
Iain Lane
e4508e0130
network: Accept empty values for the cloned mac address
...
Empty is a valid value here. It means the setting is not set. Two places
need to be updated:
- the validation function
- when retrieving the value from the combo, empty strings need to be
mapped to a setting value of NULL
Closes #677
2019-10-05 12:14:31 +01: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
6d7e552ae1
network: Remove hidden notebook tabs from GtkBuilder files
...
These tabs are never shown and many were marked for translation.
2019-09-30 16:10:09 +13:00
Mohammed Sadiq
3316f51866
network: Fix a crash when opening connection editor
2019-09-23 13:55:26 +00:00
Philip Withnall
dadf2a4258
network: Add mnemonic for ‘Restrict background data usage’ checkbox
...
The other checkboxes on this page all have mnemonics. It seems unfair
for the background data usage one to be left out of the party.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-09-17 22:14:51 +00:00
Georges Basile Stavracas Neto
6e6e9952b4
network: fix Add Connection dialog
...
The Add Connection widgets from the connection
editor dialog weren't properly using the available
space, since they don't expand.
Fix that by making them expand and fill the available
space properly. It also avoids blank space by vertically
centering the list.
2019-09-17 22:14:51 +00: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
Robert Ancell
072d5daf5c
network: Add missing warning message about error
2019-09-13 14:20:49 +12:00