@@ -12075,7 +12075,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
12075
12075
set gitk_prefix [file dirname [file dirname [file normalize $argv0 ]]]
12076
12076
set gitk_libdir [file join $gitk_prefix share gitk lib]
12077
12077
set gitk_msgsdir [file join $gitk_libdir msgs]
12078
- unset gitk_prefix
12079
12078
}
12080
12079
12081
12080
# # Internationalization (i18n) through msgcat and gettext. See
@@ -12426,28 +12425,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
12426
12425
set worktree [exec git rev-parse --show-toplevel]
12427
12426
setcoords
12428
12427
makewindow
12429
- catch {
12430
- image create photo gitlogo -width 16 -height 16
12431
-
12432
- image create photo gitlogominus -width 4 -height 2
12433
- gitlogominus put #C00000 -to 0 0 4 2
12434
- gitlogo copy gitlogominus -to 1 5
12435
- gitlogo copy gitlogominus -to 6 5
12436
- gitlogo copy gitlogominus -to 11 5
12437
- image delete gitlogominus
12438
-
12439
- image create photo gitlogoplus -width 4 -height 4
12440
- gitlogoplus put #008000 -to 1 0 3 4
12441
- gitlogoplus put #008000 -to 0 1 4 3
12442
- gitlogo copy gitlogoplus -to 1 9
12443
- gitlogo copy gitlogoplus -to 6 9
12444
- gitlogo copy gitlogoplus -to 11 9
12445
- image delete gitlogoplus
12446
-
12447
- image create photo gitlogo32 -width 32 -height 32
12448
- gitlogo32 copy gitlogo -zoom 2 2
12449
-
12450
- wm iconphoto . -default gitlogo gitlogo32
12428
+ if {$::tcl_platform(platform) eq {windows} && [file exists $gitk_prefix /etc/git.ico]} {
12429
+ wm iconbitmap . -default $gitk_prefix /etc/git.ico
12430
+ } else {
12431
+ catch {
12432
+ image create photo gitlogo -width 16 -height 16
12433
+
12434
+ image create photo gitlogominus -width 4 -height 2
12435
+ gitlogominus put #C00000 -to 0 0 4 2
12436
+ gitlogo copy gitlogominus -to 1 5
12437
+ gitlogo copy gitlogominus -to 6 5
12438
+ gitlogo copy gitlogominus -to 11 5
12439
+ image delete gitlogominus
12440
+
12441
+ image create photo gitlogoplus -width 4 -height 4
12442
+ gitlogoplus put #008000 -to 1 0 3 4
12443
+ gitlogoplus put #008000 -to 0 1 4 3
12444
+ gitlogo copy gitlogoplus -to 1 9
12445
+ gitlogo copy gitlogoplus -to 6 9
12446
+ gitlogo copy gitlogoplus -to 11 9
12447
+ image delete gitlogoplus
12448
+
12449
+ image create photo gitlogo32 -width 32 -height 32
12450
+ gitlogo32 copy gitlogo -zoom 2 2
12451
+
12452
+ wm iconphoto . -default gitlogo gitlogo32
12453
+ }
12451
12454
}
12452
12455
# wait for the window to become visible
12453
12456
tkwait visibility .
0 commit comments