@@ -12272,7 +12272,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
1227212272 set gitk_prefix [file dirname [file dirname [file normalize $argv0 ]]]
1227312273 set gitk_libdir [file join $gitk_prefix share gitk lib]
1227412274 set gitk_msgsdir [file join $gitk_libdir msgs]
12275- unset gitk_prefix
1227612275}
1227712276
1227812277# # Internationalization (i18n) through msgcat and gettext. See
@@ -12635,28 +12634,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
1263512634set worktree [gitworktree]
1263612635setcoords
1263712636makewindow
12638- catch {
12639- image create photo gitlogo -width 16 -height 16
12640-
12641- image create photo gitlogominus -width 4 -height 2
12642- gitlogominus put #C00000 -to 0 0 4 2
12643- gitlogo copy gitlogominus -to 1 5
12644- gitlogo copy gitlogominus -to 6 5
12645- gitlogo copy gitlogominus -to 11 5
12646- image delete gitlogominus
12647-
12648- image create photo gitlogoplus -width 4 -height 4
12649- gitlogoplus put #008000 -to 1 0 3 4
12650- gitlogoplus put #008000 -to 0 1 4 3
12651- gitlogo copy gitlogoplus -to 1 9
12652- gitlogo copy gitlogoplus -to 6 9
12653- gitlogo copy gitlogoplus -to 11 9
12654- image delete gitlogoplus
12655-
12656- image create photo gitlogo32 -width 32 -height 32
12657- gitlogo32 copy gitlogo -zoom 2 2
12658-
12659- wm iconphoto . -default gitlogo gitlogo32
12637+ if {$::tcl_platform(platform) eq {windows} && [file exists $gitk_prefix /etc/git.ico]} {
12638+ wm iconbitmap . -default $gitk_prefix /etc/git.ico
12639+ } else {
12640+ catch {
12641+ image create photo gitlogo -width 16 -height 16
12642+
12643+ image create photo gitlogominus -width 4 -height 2
12644+ gitlogominus put #C00000 -to 0 0 4 2
12645+ gitlogo copy gitlogominus -to 1 5
12646+ gitlogo copy gitlogominus -to 6 5
12647+ gitlogo copy gitlogominus -to 11 5
12648+ image delete gitlogominus
12649+
12650+ image create photo gitlogoplus -width 4 -height 4
12651+ gitlogoplus put #008000 -to 1 0 3 4
12652+ gitlogoplus put #008000 -to 0 1 4 3
12653+ gitlogo copy gitlogoplus -to 1 9
12654+ gitlogo copy gitlogoplus -to 6 9
12655+ gitlogo copy gitlogoplus -to 11 9
12656+ image delete gitlogoplus
12657+
12658+ image create photo gitlogo32 -width 32 -height 32
12659+ gitlogo32 copy gitlogo -zoom 2 2
12660+
12661+ wm iconphoto . -default gitlogo gitlogo32
12662+ }
1266012663}
1266112664# wait for the window to become visible
1266212665tkwait visibility .
0 commit comments