diff options
author | Dan Williams <dcbw@redhat.com> | 2014-09-03 17:43:25 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-09-04 09:55:30 -0500 |
commit | 4f01a3159154bde070036eaa1cbcdc1bd2805ccd (patch) | |
tree | f9420c478678104f5ba9e80cd8972bf7c2d30f72 | |
parent | 6fc48270eec4a6f36f727aac1eb267802700b24a (diff) | |
download | NetworkManager-4f01a3159154bde070036eaa1cbcdc1bd2805ccd.tar.gz |
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
(cherry picked from commit 82b0ea87075144650979d344f34c09c7111c4a4e)
-rw-r--r-- | tui/nmt-password-fields.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tui/nmt-password-fields.c b/tui/nmt-password-fields.c index ec8b521825..be75b74b8e 100644 --- a/tui/nmt-password-fields.c +++ b/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); } |