@@ -12436,7 +12436,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
12436
12436
set gitk_prefix [ file dirname [file dirname [file normalize $argv0 ] ]]
12437
12437
set gitk_libdir [ file join $gitk_prefix share gitk lib]
12438
12438
set gitk_msgsdir [ file join $gitk_libdir msgs]
12439
- unset gitk_prefix
12440
12439
}
12441
12440
12442
12441
## Internationalization (i18n) through msgcat and gettext. See
@@ -12799,28 +12798,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
12799
12798
set worktree [ gitworktree]
12800
12799
setcoords
12801
12800
makewindow
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
+ }
12824
12827
}
12825
12828
# wait for the window to become visible
12826
12829
tkwait visibility .
0 commit comments