Skip to content

Commit 1d1c97f

Browse files
committed
git-gui--askyesno (mingw): use Git for Windows' icon, if available
For additional GUI goodness. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 36e2491 commit 1d1c97f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

git-gui/git-gui--askyesno

+12
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,17 @@ proc yes {} {
5252
exit 0
5353
}
5454

55+
if {$::tcl_platform(platform) eq {windows}} {
56+
set icopath [file dirname [file normalize $argv0]]
57+
if {[file tail $icopath] eq {git-core}} {
58+
set icopath [file dirname $icopath]
59+
}
60+
set icopath [file dirname $icopath]
61+
set icopath [file join $icopath share git git-for-windows.ico]
62+
if {[file exists $icopath]} {
63+
wm iconbitmap . -default $icopath
64+
}
65+
}
66+
5567
wm title . $title
5668
tk::PlaceWindow .

0 commit comments

Comments
 (0)