diff options
| author | Mark Levedahl <mlevedahl@gmail.com> | 2025-07-14 12:15:49 -0400 |
|---|---|---|
| committer | Mark Levedahl <mlevedahl@gmail.com> | 2025-07-18 23:48:34 -0400 |
| commit | fdc0e3a29020276de3d9344d2ab0caf4d086fd3a (patch) | |
| tree | 29f865e546d585b5f260f5a3561d81ac813e4fb5 /lib/sshkey.tcl | |
| parent | ed7d2af78cd4cb8c9a8db4f2f60f56101d9439f8 (diff) | |
| download | git-fdc0e3a29020276de3d9344d2ab0caf4d086fd3a.tar.xz | |
git-gui: remove ${NS} indirection for ttk
git-gui uses ${NS} to switch between non-themed and themed widgets, with
${NS} == 'ttk' selecting the latter. As git-gui now always uses ttk,
this indirection is not needed. Remove it.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Diffstat (limited to 'lib/sshkey.tcl')
| -rw-r--r-- | lib/sshkey.tcl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/sshkey.tcl b/lib/sshkey.tcl index 507e1f797e..6caf1fd458 100644 --- a/lib/sshkey.tcl +++ b/lib/sshkey.tcl @@ -18,7 +18,7 @@ proc find_ssh_key {} { } proc do_ssh_key {} { - global sshkey_title sshkey_fd use_ttk NS + global sshkey_title sshkey_fd use_ttk set w .sshkey_dialog if {[winfo exists $w]} { @@ -38,9 +38,9 @@ proc do_ssh_key {} { set gen_state disabled } - ${NS}::frame $w.header - ${NS}::label $w.header.lbl -textvariable sshkey_title -anchor w - ${NS}::button $w.header.gen -text [mc "Generate Key"] \ + ttk::frame $w.header + ttk::label $w.header.lbl -textvariable sshkey_title -anchor w + ttk::button $w.header.gen -text [mc "Generate Key"] \ -command [list make_ssh_key $w] -state $gen_state pack $w.header.lbl -side left -expand 1 -fill x pack $w.header.gen -side right @@ -52,11 +52,11 @@ proc do_ssh_key {} { if {$use_ttk} { set clr [ttk::style lookup . -selectbackground] } $w.contents configure -inactiveselectbackground $clr - ${NS}::frame $w.buttons - ${NS}::button $w.buttons.close -text [mc Close] \ + ttk::frame $w.buttons + ttk::button $w.buttons.close -text [mc Close] \ -default active -command [list destroy $w] pack $w.buttons.close -side right - ${NS}::button $w.buttons.copy -text [mc "Copy To Clipboard"] \ + ttk::button $w.buttons.copy -text [mc "Copy To Clipboard"] \ -command [list tk_textCopy $w.contents] pack $w.buttons.copy -side left pack $w.buttons -side bottom -fill x -pady 5 -padx 5 |
