mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-31 02:17:14 -05:00
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:
@@ -52,5 +52,17 @@ proc yes {} {
|
|||||||
exit 0
|
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
|
wm title . $title
|
||||||
tk::PlaceWindow .
|
tk::PlaceWindow .
|
||||||
|
|||||||
Reference in New Issue
Block a user