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