summaryrefslogtreecommitdiff
path: root/git-gui/git-gui--askpass
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-12-18 15:07:10 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-18 15:07:10 -0800
commitf4d8e191230b3d233005720085092b97e9bf32f1 (patch)
tree6b93153c3b0665a48f44a0991937da8edb910e8b /git-gui/git-gui--askpass
parentAnother batch before 2.30-rc1 (diff)
parentMerge branch 'sh/inactive-background' (diff)
downloadtgif-f4d8e191230b3d233005720085092b97e9bf32f1.tar.xz
Merge https://github.com/prati0100/git-gui
* https://github.com/prati0100/git-gui: git-gui: use gray background for inactive text widgets git-gui: Fix selected text colors Makefile: conditionally include GIT-VERSION-FILE git-gui: fix colored label backgrounds when using themed widgets git-gui: ssh-askpass: add a checkbox to show the input text git-gui: update Russian translation git-gui: use commit message template git-gui: Only touch GITGUI_MSG when needed
Diffstat (limited to 'git-gui/git-gui--askpass')
-rwxr-xr-xgit-gui/git-gui--askpass15
1 files changed, 14 insertions, 1 deletions
diff --git a/git-gui/git-gui--askpass b/git-gui/git-gui--askpass
index 1c99ee8ca2..71a536d232 100755
--- a/git-gui/git-gui--askpass
+++ b/git-gui/git-gui--askpass
@@ -26,8 +26,21 @@ pack .m -side top -fill x -padx 20 -pady 20 -expand 1
entry .e -textvariable answer -width 50
pack .e -side top -fill x -padx 10 -pady 10
+proc on_show_input_changed {args} {
+ global show_input
+ if {$show_input} {
+ .e configure -show ""
+ } else {
+ .e configure -show "*"
+ }
+}
+trace add variable show_input write "on_show_input_changed"
+
+set show_input 0
+
if {!$yesno} {
- .e configure -show "*"
+ checkbutton .cb_show -text "Show input" -variable show_input
+ pack .cb_show -side top -anchor nw
}
frame .b