@@ -12436,7 +12436,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
1243612436 set gitk_prefix [ file dirname [file dirname [file normalize $argv0 ] ]]
1243712437 set gitk_libdir [ file join $gitk_prefix share gitk lib]
1243812438 set gitk_msgsdir [ file join $gitk_libdir msgs]
12439- unset gitk_prefix
1244012439}
1244112440
1244212441## Internationalization (i18n) through msgcat and gettext. See
@@ -12799,28 +12798,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
1279912798set worktree [ gitworktree]
1280012799setcoords
1280112800makewindow
12802- catch {
12803- image create photo gitlogo -width 16 -height 16
12804-
12805- image create photo gitlogominus -width 4 -height 2
12806- gitlogominus put #C00000 -to 0 0 4 2
12807- gitlogo copy gitlogominus -to 1 5
12808- gitlogo copy gitlogominus -to 6 5
12809- gitlogo copy gitlogominus -to 11 5
12810- image delete gitlogominus
12811-
12812- image create photo gitlogoplus -width 4 -height 4
12813- gitlogoplus put #008000 -to 1 0 3 4
12814- gitlogoplus put #008000 -to 0 1 4 3
12815- gitlogo copy gitlogoplus -to 1 9
12816- gitlogo copy gitlogoplus -to 6 9
12817- gitlogo copy gitlogoplus -to 11 9
12818- image delete gitlogoplus
12819-
12820- image create photo gitlogo32 -width 32 -height 32
12821- gitlogo32 copy gitlogo -zoom 2 2
12822-
12823- wm iconphoto . -default gitlogo gitlogo32
12801+ if {$::tcl_platform(platform) eq {windows} && [ file exists $gitk_prefix /etc/git.ico] } {
12802+ wm iconbitmap . -default $gitk_prefix /etc/git.ico
12803+ } else {
12804+ catch {
12805+ image create photo gitlogo -width 16 -height 16
12806+
12807+ image create photo gitlogominus -width 4 -height 2
12808+ gitlogominus put #C00000 -to 0 0 4 2
12809+ gitlogo copy gitlogominus -to 1 5
12810+ gitlogo copy gitlogominus -to 6 5
12811+ gitlogo copy gitlogominus -to 11 5
12812+ image delete gitlogominus
12813+
12814+ image create photo gitlogoplus -width 4 -height 4
12815+ gitlogoplus put #008000 -to 1 0 3 4
12816+ gitlogoplus put #008000 -to 0 1 4 3
12817+ gitlogo copy gitlogoplus -to 1 9
12818+ gitlogo copy gitlogoplus -to 6 9
12819+ gitlogo copy gitlogoplus -to 11 9
12820+ image delete gitlogoplus
12821+
12822+ image create photo gitlogo32 -width 32 -height 32
12823+ gitlogo32 copy gitlogo -zoom 2 2
12824+
12825+ wm iconphoto . -default gitlogo gitlogo32
12826+ }
1282412827}
1282512828# wait for the window to become visible
1282612829tkwait visibility .
0 commit comments