[connections/properties-dialog-tweaks: 8/10] properties: Bind the Properties Dialog title to the connection name




commit 13dfec5f81b40fedf0b2c606b771e6cbc32b8841
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Nov 20 12:02:09 2020 +0100

    properties: Bind the Properties Dialog title to the connection name
    
    This is what we do in Boxes too. Much more intuitive to indicate
    what's being managed.

 src/properties.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/properties.vala b/src/properties.vala
index e103e63..3c717fd 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -53,6 +53,9 @@ namespace Connections {
 
                 host_address_label.set_text (connection.uri);
             });
+
+            var titlebar = get_titlebar () as Gtk.HeaderBar;
+            titlebar.bind_property ("title", connection_name_entry, "text", BindingFlags.BIDIRECTIONAL);
         }
 
         public void add_property (Connections.Property property) {


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