Commit graph

220 commits

Author SHA1 Message Date
Bastien Nocera
36576a5cb6 network: Update security page for recent changes 2016-06-07 13:11:07 +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
Cosimo Cecchi
cce521db4a network: fix a GCC warning
https://bugzilla.gnome.org/show_bug.cgi?id=764296
2016-04-14 12:31:49 -07:00
Michael Catanzaro
5036ff0f80 network: Hide firewall zone combo when firewalld is not running
Currently, if firewalld is not running, then the firewall zone combo is
always insensitive. This would make sense if firewalld was great and we
were to consider it a distro bug to not have firewalld running and
enabled, then users would be able to see the option is disabled and
think "maybe my distro has done something wrong."

But in actuality, firewalld is not really great, only Fedora ships it
and we're not really recommending it to other distros. So hide the combo
if it's not running, else it's just broken on $NOTFEDORA.

https://bugzilla.gnome.org/show_bug.cgi?id=763477
2016-04-11 14:53:08 -05: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
Juan A. Suarez Romero
675ac22c44 network: use VPN plugin paths as specified in the .name files
Since LIBDIR of gnome-control-center and the VPN plugins aren't
necessarily the same, use the paths as specified by the VPN plugins and
only reconstruct the path if it is not absolute or we fail to load the
plugin.

Patch from Debian package, by Michael Biebl <biebl@debian.org>

https://bugzilla.gnome.org/show_bug.cgi?id=764509
2016-04-04 21:46:33 -07: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
Lubomir Rintel
62683047c5 network: read secrets for the VPN connections
The VPN page needs secrets too. Don't initialize it until the secrets are
loaded, otherwise the secrets are lost on each connection edit.

https://bugzilla.gnome.org/show_bug.cgi?id=761004
2016-01-26 16:51:09 +01:00
Bastien Nocera
3b283b78b0 network: Fix freeing const pointer
From coverity:
gnome-control-center-3.14.5/panels/network/connection-editor/firewall-helpers.c:75:9: warning: passing argument 1 of 'g_free' discards 'const' qualifier from pointer target type [enabled by default]

https://bugzilla.gnome.org/show_bug.cgi?id=749897
2015-05-27 11:06:02 +02:00
Matthias Clasen
2093f6c7ea network: Move firewall zone to security
This is where people expect it (whether that is correct or not).

https://bugzilla.gnome.org/show_bug.cgi?id=745702
2015-05-23 11:57:19 -04:00
Rui Matos
c12cb21065 network: Fix a crash on IPv6 settings dialog
Commit 219a94ed1e added a
g_object_unref() on the wrong line.
2015-03-27 15:00:46 +01:00
Bastien Nocera
219a94ed1e network: Fix GtkListStore leak in IPv{4,6} dialogues
https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:44 +01:00
Bastien Nocera
0a96aa3bcd network: Make "only for this network" work for IPv6 VPNs
https://bugzilla.gnome.org/show_bug.cgi?id=738029
2015-03-09 16:12:25 +01:00
Bastien Nocera
33b1858787 network: Don't save hidden configuration options
When switching from a particular IPv4 or IPv6 "addresses" method to
another, make sure that "address", "DNS" and "routes" are applied or
ignored depending on that method's capabilities.

For example, when switching from manual to automatic IPv4 "addresses"
method, we need to make sure that the old IP address, gateway, etc.
aren't actually used in the new setting.

https://bugzilla.gnome.org/show_bug.cgi?id=734337
2015-03-09 16:07:15 +01:00
Tim Waugh
dba40e1301 network: Allocate storage for zone name during D-Bus call
The call to nm_setting_connection_get_zone() returns a pointer to
memory that will be freed before the D-Bus reply handler is called.
Make sure to take a copy of the string, and free it when finished.

https://bugzilla.gnome.org/show_bug.cgi?id=739971
2015-02-10 12:40:28 +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
David King
86b7af3f0e panels: Mark label strings as translatable
https://bugzilla.gnome.org/show_bug.cgi?id=736052
2014-09-04 16:00:20 +01:00
David King
745c7ef9de panels: Fix all but one uses of use-stock property
Avoid the deprecated use-stock.

https://bugzilla.gnome.org/show_bug.cgi?id=736052
2014-09-04 14:14:31 +01:00
Bastien Nocera
d9d5124997 network: Don't stop validating when we get an error
The previous code would stop validating when an error occurred which
meant that when a page contained multiple errors, only the first one(s)
to be checked would appear in red.

Now, all the errors will appear in red.

https://bugzilla.gnome.org/show_bug.cgi?id=734472
2014-08-13 18:38:31 +02:00
Bastien Nocera
62db29b387 network: Make broken configuration entries red
When a configuration setting is wrong, set the entry or file chooser
that contains the incorrect information to be surrounded by red.

This makes it easier for users to find where the error was made that
disallows them to click the "Apply" button.

https://bugzilla.gnome.org/show_bug.cgi?id=734446
2014-08-08 12:00:40 +02:00
Bastien Nocera
1fe3d1fe1c network: Remove "..." from dialogue titles
https://bugzilla.gnome.org/show_bug.cgi?id=696845
2014-07-24 13:19:09 +02: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
41b33dc839 network: allow an empty gateway address in the connection editor
It appears that this has always been the intention of the code,
but the check was incomplete.

https://bugzilla.gnome.org/show_bug.cgi?id=724312
2014-02-18 09:48:17 +01: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
Matthias Clasen
e165efc6f9 network: Mark connection editor as changed when appropriate
We were forgetting to do so when toggling the 'Only use for resources
on its network' checkbox.

https://bugzilla.gnome.org/show_bug.cgi?id=703959
2013-08-30 23:12:44 -04:00
Bastien Nocera
add1adfdb7 network: Remove unused top-level widget
The "window1" widget in the GtkBuilder file was never used.
2013-08-22 19:17:19 +02:00
Yosef Or Boczko
e611930dfb network: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
2013-07-19 15:56:26 +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
Thomas Wood
f17b62ceb3 network: prevent the "Details" and "Hotspot" dialogs from being resizable
https://bugzilla.gnome.org/show_bug.cgi?id=702487
2013-06-18 17:38:37 +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
Kalev Lember
7bef593d71 network: mark connection editor changed in a few more cases
This makes sure the "Apply" button becomes sensitive when clicking on
"Connect automatically" or "Make availabe to other users".

https://bugzilla.gnome.org/show_bug.cgi?id=697098
2013-04-10 01:26:34 +02: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
Matthias Clasen
377fbad218 network: Add firewall zone support for vpn
At the same time, we add 'make available to all users'

https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:46:10 -05:00
Matthias Clasen
e183775af7 network: Add firewall zone support for wired
https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:46:02 -05:00
Matthias Clasen
7de70b9821 network: Add firewall zone support for wifi
https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:45:56 -05:00
Matthias Clasen
5918f58533 Add a cancellable to the page base class
This will be used for firewall setup.
2013-03-04 21:45:55 -05:00
Matthias Clasen
844ca77921 network: Add firewall helper functions
This code will be used in subsequent commits to add
firewall zone support to connections.

https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:45:48 -05:00
Thomas Bechtold
07aaa06b1e network: Plug memory leaks 2013-02-15 15:19:19 +01:00
Bastien Nocera
a55000a294 network: Fix compile-time warnings 2013-02-15 13:45:28 +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