git-gui--askyesno (mingw): use Git for Windows' icon, if available

For additional GUI goodness.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2017-09-20 21:55:45 +02:00
committed by Git for Windows Build Agent
parent c77043fa3d
commit 763e396cc7

View File

@@ -59,5 +59,17 @@ if {$::tcl_platform(platform) eq {windows}} {
}
}
if {$::tcl_platform(platform) eq {windows}} {
set icopath [file dirname [file normalize $argv0]]
if {[file tail $icopath] eq {git-core}} {
set icopath [file dirname $icopath]
}
set icopath [file dirname $icopath]
set icopath [file join $icopath share git git-for-windows.ico]
if {[file exists $icopath]} {
wm iconbitmap . -default $icopath
}
}
wm title . $title
tk::PlaceWindow .