@@ -12272,7 +12272,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
12272
12272
set gitk_prefix [file dirname [file dirname [file normalize $argv0 ]]]
12273
12273
set gitk_libdir [file join $gitk_prefix share gitk lib]
12274
12274
set gitk_msgsdir [file join $gitk_libdir msgs]
12275
- unset gitk_prefix
12276
12275
}
12277
12276
12278
12277
# # Internationalization (i18n) through msgcat and gettext. See
@@ -12635,28 +12634,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
12635
12634
set worktree [gitworktree]
12636
12635
setcoords
12637
12636
makewindow
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
+ }
12660
12663
}
12661
12664
# wait for the window to become visible
12662
12665
tkwait visibility .
0 commit comments