[gnome-control-center] net-vpn: Don't append `VPN` in the title of the editor dialog



commit 10489fb20853437669ea3ca3854efd4704c76af4
Author: Alessandro Bono <alessandro bono369 gmail com>
Date:   Thu Feb 10 13:56:41 2022 +0100

    net-vpn: Don't append `VPN` in the title of the editor dialog
    
    We don't do anything similar for other connections editors (wired and WiFi).
    We alredy know that we are modifying a VPN, no need to repeat ourself.

 panels/network/net-vpn.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 1613baac6..1bbdcefb3 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -144,15 +144,10 @@ static void
 edit_connection (NetVpn *self)
 {
         NetConnectionEditor *editor;
-        g_autofree gchar *title = NULL;
 
         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);
+        net_connection_editor_set_title (editor, nm_connection_get_id (self->connection));
 
         g_signal_connect_object (editor, "done", G_CALLBACK (editor_done), self, G_CONNECT_SWAPPED);
         gtk_window_present (GTK_WINDOW (editor));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]