Skip to content

Commit e2e119a

Browse files
committed
git-gui--askyesno (mingw): use Git for Windows' icon, if available
For additional GUI goodness. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 3234b40 commit e2e119a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

git-gui/git-gui--askyesno

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
6274
wm title . $title
6375
tk::PlaceWindow .

0 commit comments

Comments
 (0)