From 82b0ea87075144650979d344f34c09c7111c4a4e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 3 Sep 2014 17:43:25 -0500 Subject: [PATCH] tui: fix updating of NmtPasswordFields passwords (bgo #733002) The actual entry is a sub-widget, and was getting updated when the user changed the password, but those changes were not being propagated to the NmtPasswordFields object's 'password' property. https://bugzilla.gnome.org/show_bug.cgi?id=733002 --- clients/tui/nmt-password-fields.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clients/tui/nmt-password-fields.c b/clients/tui/nmt-password-fields.c index 8fba33fd97..7ef037b9de 100644 --- a/clients/tui/nmt-password-fields.c +++ b/clients/tui/nmt-password-fields.c @@ -156,6 +156,10 @@ nmt_password_fields_constructed (GObject *object) } else g_clear_object (&priv->show_password); + g_object_bind_property (priv->entry, "text", + object, "password", + G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); + G_OBJECT_CLASS (nmt_password_fields_parent_class)->constructed (object); }