Skip to content

Commit

Permalink
git-gui--askyesno (mingw): use Git for Windows' icon, if available
Browse files Browse the repository at this point in the history
For additional GUI goodness.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Sep 18, 2024
1 parent 0792487 commit f57f1f1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions git-gui/git-gui--askyesno
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,17 @@ proc yes {} {
exit 0
}

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 .

0 comments on commit f57f1f1

Please sign in to comment.