projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e345fa
)
tui: prefill a secret in the entry if we have a value
author
Jiří Klimeš
<jklimes@redhat.com>
Fri, 11 Dec 2015 14:14:59 +0000
(15:14 +0100)
committer
Jiří Klimeš
<jklimes@redhat.com>
Sat, 12 Dec 2015 19:06:35 +0000
(20:06 +0100)
clients/tui/nmt-password-dialog.c
patch
|
blob
|
history
diff --git
a/clients/tui/nmt-password-dialog.c
b/clients/tui/nmt-password-dialog.c
index
8eeaa54
..
8eca7dc
100644
(file)
--- a/
clients/tui/nmt-password-dialog.c
+++ b/
clients/tui/nmt-password-dialog.c
@@
-152,6
+152,8
@@
nmt_password_dialog_constructed (GObject *object)
if (secret->password)
flags |= NMT_NEWT_ENTRY_PASSWORD;
widget = nmt_newt_entry_new (30, flags);
+ if (secret->value)
+ nmt_newt_entry_set_text (NMT_NEWT_ENTRY (widget), secret->value);
nmt_newt_grid_add (secret_grid, widget, 1, i);
g_ptr_array_add (priv->entries, widget);