Robert Ancell
5b14e16e9c
network: Connect signals with g_signal_connect_object in swapped form
2020-03-30 16:18:50 +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
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
eb4e124b04
network: Get connection editor root widget from a virtual method
2019-11-06 16:36:55 +13:00
Robert Ancell
d327e20a10
network: Replace GObject boilerplate with modern macros
2019-11-06 16:36:06 +13:00
Robert Ancell
6ab75da5c6
network: Use g_clear_pointer
2019-11-06 10:16:20 +13:00
Robert Ancell
708b1fdaf7
network: Use self variable name consistently
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
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
91af270cce
connection-editor: Use GtkTemplate
2019-01-27 21:03:13 +00:00
Benjamin Berg
417624cdab
wifi: Fix invalid variant unref in connection editor
...
If the WiFi secret is not set, then a NULL variant is passed back. We
should not free this variant. Fix this by using g_autoptr instead.
2019-01-07 15:28:38 +01:00
Benjamin Berg
c2f601a9d4
Move common panel code from shell/ to panel/common
...
This creates a new static library called libwidget which the shell links
against.
2018-04-17 15:26:59 +02:00
Benjamin Berg
72ef675a36
network: Fix warning about missing cast to GtkWidget*
...
https://bugzilla.gnome.org/show_bug.cgi?id=794171
2018-03-12 16:15:19 +01:00
Scott Cohen
87c69ed955
network: Fix typo in error message
...
Replaced "conneciton" with "connection" (both without quotes) in
panels/network/connection-editor/net-connection-editor.c:860.
https://bugzilla.gnome.org/show_bug.cgi?id=785100
2017-08-18 11:36:21 -03:00
Georges Basile Stavracas Neto
18a42a00b8
network: Move Security page to the end
...
Per the mockups at [1], the Security page is the last
visible page.
This patch also adds a small code refactoring to avoid
multiple string comparisons.
[1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/network/aday2/network-wires.png
https://bugzilla.gnome.org/show_bug.cgi?id=779841
2017-06-14 16:41:10 -03:00
Georges Basile Stavracas Neto
8137036675
network: Drop Reset page
...
Following the latest mockups [1], the "Forget" button
is now available in the Details page, and the Reset page
is gone.
This patch then removes the Reset page, and moves the
functionality to the Details page.
[1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/network/aday2/network-wires.png
https://bugzilla.gnome.org/show_bug.cgi?id=779841
2017-06-14 16:41:10 -03:00
Georges Basile Stavracas Neto
b62ed2f87b
network: Rely on notebook tabs to switch connection editor pages
...
Instead of using a sidebar, which is what the current implementation
uses to switch pages, the latest mockups [1] rely on the notebook
tabs.
This patch then updates the connection editor dialog to use the
notebook tabs as the page switcher widget.
[1] https://github.com/gnome-design-team/gnome-mockups/blob/master/system-settings/network/aday2/network-wires.png
https://bugzilla.gnome.org/show_bug.cgi?id=779841
2017-06-13 10:40:03 -03:00
Bastien Nocera
c6f1b3a2be
network: Simplify complete_connection_for_type()
...
Now that there's only one type to be added (VPNs).
https://bugzilla.gnome.org/show_bug.cgi?id=767614
2016-06-24 17:26:10 +02:00
Bastien Nocera
d0fcd5843c
network: Remove the first page of the "Add Connection" wizard
...
We still offered to add Bond, Team, Bridge and VLAN connections even
though we don't support them any more. Remove the first page as we only
offer to add VPN connections.
https://bugzilla.gnome.org/show_bug.cgi?id=767614
2016-06-24 17:26:10 +02:00
Bastien Nocera
2a7b19202b
network: Fix crash creating a VPN
...
The listing of VPN plugins was done using the nm-glib API instead of the
new libnm 1.2 one.
https://bugzilla.gnome.org/show_bug.cgi?id=767614
2016-06-24 17:26:10 +02:00
Bastien Nocera
8f359fbe5e
network: Remember "Ignore CA certificate"
...
The CA certificate, when not needed, is saved somewhere in the same
GSettings schema used by nm-connection-editor.
2016-06-07 18:50:38 +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
Bastien Nocera
a4729411b5
network: Remove VLAN support
...
It is supported by Cockpit already:
https://github.com/cockpit-project/cockpit/issues/1007
https://bugzilla.gnome.org/show_bug.cgi?id=747443
2016-05-26 14:49:28 +02:00
Bastien Nocera
9974342865
network: Remove team support
...
It will be supported by Cockpit in the near future:
https://github.com/cockpit-project/cockpit/issues/4330
https://bugzilla.gnome.org/show_bug.cgi?id=747443
2016-05-26 14:49:28 +02:00
Bastien Nocera
b38bf8b672
network: Remove bond support
...
It is supported by Cockpit already:
https://github.com/cockpit-project/cockpit/issues/458
https://bugzilla.gnome.org/show_bug.cgi?id=747443
2016-05-26 14:49:28 +02:00
Bastien Nocera
20b634b454
network: Remove bridge support
...
It is supported by Cockpit already:
https://github.com/cockpit-project/cockpit/issues/459
https://bugzilla.gnome.org/show_bug.cgi?id=747443
2016-05-26 14:49:28 +02:00
Bastien Nocera
9c70369a34
network: Fix "format not a string literal" error
...
https://bugzilla.gnome.org/show_bug.cgi?id=764727
2016-04-08 11:31:24 +02:00
Rui Matos
d57be89340
network: Avoid warnings while closing connection editor
...
It doesn't make sense to try to validate pages because widgets are
changing due to the whole dialog being destroyed and it causes a bunch
of warnings because some resources are cleared on each page dispose
method.
Avoid all that by disconnecting the page "changed" signal handler
before we start destroying widgets.
2016-01-26 18:40:47 +01:00
Rui Matos
2e6149b4b8
network: Don't try to get secrets for new connections
...
We don't need secrets for new connections and, in fact, trying to
retrieve secrets in that case will fail because we have a plain
NMConnection instead of a NMRemoteConnection.
The above mentioned error would result in the page never being
initialized.
2016-01-26 18:40:47 +01:00
Rui Matos
cd5316b7a7
network: Drop deprecated API usage
...
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Bastien Nocera
55fe239e99
network: Use new listbox helpers
...
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:31 +02:00
Giovanni Campagna
8b6f9afb72
network: don't warn for invalid settings
...
g_warning() is for environment errors, not user errors. Not being
able to click OK is enough to understand that something is wrong,
and if not we should highlight the faulty setting, not spam the logs,
expecially in the middle of digitation. Keep a log anyway, for
debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=724312
2014-02-18 09:48:17 +01:00
Bastien Nocera
f31dbd0271
network: Fix build with NM 0.9.8.x
...
Team support was only added in the 0.9.9.x branch for the 0.9.10
stable release. It's not available in any releases (beta or stable
ones) yet.
https://bugzilla.gnome.org/show_bug.cgi?id=723769
2014-02-18 09:48:17 +01:00
Jiří Klimeš
c2c3ccb04e
network: add Team to connection editor (rh #1040525 )
...
https://bugzilla.redhat.com/show_bug.cgi?id=1040525
Signed-off-by: jirka <jirka@localhost.localdomain>
https://bugzilla.gnome.org/show_bug.cgi?id=720312
2014-01-10 15:14:12 +01:00
Yosef Or Boczko
d4ef801743
network: Use margin-start/end instead of margin-left/right
...
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:26:49 +02:00
Bastien Nocera
e267515ed6
network: Disconnect from signal on finalize
...
The connection editor connects to permission-changed on its NMClient,
but didn't disconnect from that signal when dropping the NMClient
reference in finalize.
https://bugzilla.gnome.org/show_bug.cgi?id=700989
2013-09-07 19:09:22 -03:00
Kalev Lember
62f18a2e32
network: Convert connection editor to GtkListBox
...
https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Matthias Clasen
eb9c61f3e0
network: Avoid jumping dialogs
...
The connection editor window is shown before all of its pages are
initialized, causing it to jump when it gets its final size. Avoid
that by not showing it before it is ready.
https://bugzilla.gnome.org/show_bug.cgi?id=693781
2013-04-16 11:28:16 +02:00
Matthias Clasen
7618df792f
network: Allow setting title on connection editor
...
We want the title to match whats in the device list, which
sometimes does not match the connection id exactly. This
API lets us do so.
https://bugzilla.gnome.org/show_bug.cgi?id=693780
2013-04-15 08:27:36 -04:00
Bastien Nocera
c57faf5da5
network: Fix possible crash in connection editor
...
Disable the type-ahead search in the connection editor, the
number of items, and their positional stability means that
a search feature isn't warranted.
As a precaution, also check the success of
gtk_tree_selection_get_selected() to avoid crashes.
https://bugzilla.gnome.org/show_bug.cgi?id=693685
2013-03-27 11:25:51 +01:00
Dan Winship
dcb932bd9d
network: fix initial sensitivity of editor "Add" button
...
The "only make Apply/Add sensitive if something changed" rule should
not apply to new connections; they are already "changed".
https://bugzilla.gnome.org/show_bug.cgi?id=693659
2013-02-14 14:43:25 -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
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
Rico Tzschichholz
b489f0d24c
networks: fix build with -Werror=format-security
2013-01-31 14:56:47 +01: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