From: Johannes Schindelin Date: Thu, 28 Aug 2025 08:58:50 +0000 (+0000) Subject: git-gui--askyesno (mingw): use Git for Windows' icon, if available X-Git-Tag: v2.52.0-rc0~138^2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74c90b0f1b729b22b49b1725fa335500fd7aa6dc;p=thirdparty%2Fgit.git git-gui--askyesno (mingw): use Git for Windows' icon, if available This provides a unified look-and-feel in Git for Windows. Signed-off-by: Johannes Schindelin Signed-off-by: Johannes Sixt --- diff --git a/git-gui--askyesno b/git-gui--askyesno index d0c801c42c..142d1bc3de 100755 --- a/git-gui--askyesno +++ b/git-gui--askyesno @@ -47,5 +47,17 @@ pack .b -side bottom -fill x -ipadx 20 -ipady 15 bind . {exit 0} bind . {exit 1} +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 .