diff options
author | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-02-10 13:10:25 +0100 |
---|---|---|
committer | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-02-15 14:42:13 +0000 |
commit | ce1c00be5d4255aef8cc64d0062f18fc95f6a1a0 (patch) | |
tree | 13492db993aecee6f40a0b859b2f7edd442bacf4 /panels/network/net-vpn.c | |
parent | e262a87a44caa7995c613dbd159ac60a36ea967f (diff) | |
download | gnome-control-center-ce1c00be5d4255aef8cc64d0062f18fc95f6a1a0.tar.gz |
net-vpn: Don't append `VPN` to each row
We don't do anything similar for other connections rows (wired and WiFi).
All the rows are VPNs. No need to repeat ourself.
Diffstat (limited to 'panels/network/net-vpn.c')
-rw-r--r-- | panels/network/net-vpn.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c index d1bd8fd41..1613baac6 100644 --- a/panels/network/net-vpn.c +++ b/panels/network/net-vpn.c @@ -53,15 +53,10 @@ nm_device_refresh_vpn_ui (NetVpn *self) NMActiveConnection *a; gint i; NMVpnConnectionState state; - g_autofree gchar *title = NULL; /* update title */ - /* Translators: this is the title of the connection details - * window for vpn connections, it is also used to display - * vpn connections in the device list. - */ - title = g_strdup_printf (_("%s VPN"), nm_connection_get_id (self->connection)); - adw_preferences_row_set_title (ADW_PREFERENCES_ROW (self), title); + adw_preferences_row_set_title (ADW_PREFERENCES_ROW (self), + nm_connection_get_id (self->connection)); if (self->active_connection) { g_signal_handlers_disconnect_by_func (self->active_connection, @@ -153,6 +148,9 @@ edit_connection (NetVpn *self) editor = net_connection_editor_new (self->connection, NULL, NULL, self->client); gtk_window_set_transient_for (GTK_WINDOW (editor), GTK_WINDOW (gtk_widget_get_native (GTK_WIDGET (self)))); + /* Translators: this is the title of the connection details + * window for vpn connections. + */ title = g_strdup_printf (_("%s VPN"), nm_connection_get_id (self->connection)); net_connection_editor_set_title (editor, title); |