File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ if {$argc < 1} {
2929}
3030
3131${NS} ::frame .t
32- ${NS} ::label .t.m -text $prompt -justify center -width 40
33- .t.m configure -wraplength 400
32+ ${NS} ::label .t.m -text $prompt -justify center -width 400px
33+ .t.m configure -wraplength 400px
3434pack .t.m -side top -fill x -padx 20 -pady 20 -expand 1
3535pack .t -side top -fill x -ipadx 20 -ipady 20 -expand 1
3636
@@ -59,5 +59,17 @@ if {$::tcl_platform(platform) eq {windows}} {
5959 }
6060}
6161
62+ if {$::tcl_platform(platform) eq {windows}} {
63+ set icopath [file dirname [file normalize $argv0 ]]
64+ if {[file tail $icopath ] eq {git-core}} {
65+ set icopath [file dirname $icopath ]
66+ }
67+ set icopath [file dirname $icopath ]
68+ set icopath [file join $icopath share git git-for-windows.ico]
69+ if {[file exists $icopath ]} {
70+ wm iconbitmap . -default $icopath
71+ }
72+ }
73+
6274wm title . $title
6375tk::PlaceWindow .
You can’t perform that action at this time.
0 commit comments