@@ -12093,7 +12093,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
12093
12093
set gitk_prefix [file dirname [file dirname [file normalize $argv0 ]]]
12094
12094
set gitk_libdir [file join $gitk_prefix share gitk lib]
12095
12095
set gitk_msgsdir [file join $gitk_libdir msgs]
12096
- unset gitk_prefix
12097
12096
}
12098
12097
12099
12098
# # Internationalization (i18n) through msgcat and gettext. See
@@ -12448,28 +12447,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
12448
12447
set worktree [exec git rev-parse --show-toplevel]
12449
12448
setcoords
12450
12449
makewindow
12451
- catch {
12452
- image create photo gitlogo -width 16 -height 16
12453
-
12454
- image create photo gitlogominus -width 4 -height 2
12455
- gitlogominus put #C00000 -to 0 0 4 2
12456
- gitlogo copy gitlogominus -to 1 5
12457
- gitlogo copy gitlogominus -to 6 5
12458
- gitlogo copy gitlogominus -to 11 5
12459
- image delete gitlogominus
12460
-
12461
- image create photo gitlogoplus -width 4 -height 4
12462
- gitlogoplus put #008000 -to 1 0 3 4
12463
- gitlogoplus put #008000 -to 0 1 4 3
12464
- gitlogo copy gitlogoplus -to 1 9
12465
- gitlogo copy gitlogoplus -to 6 9
12466
- gitlogo copy gitlogoplus -to 11 9
12467
- image delete gitlogoplus
12468
-
12469
- image create photo gitlogo32 -width 32 -height 32
12470
- gitlogo32 copy gitlogo -zoom 2 2
12471
-
12472
- wm iconphoto . -default gitlogo gitlogo32
12450
+ if {$::tcl_platform(platform) eq {windows} && [file exists $gitk_prefix /etc/git.ico]} {
12451
+ wm iconbitmap . -default $gitk_prefix /etc/git.ico
12452
+ } else {
12453
+ catch {
12454
+ image create photo gitlogo -width 16 -height 16
12455
+
12456
+ image create photo gitlogominus -width 4 -height 2
12457
+ gitlogominus put #C00000 -to 0 0 4 2
12458
+ gitlogo copy gitlogominus -to 1 5
12459
+ gitlogo copy gitlogominus -to 6 5
12460
+ gitlogo copy gitlogominus -to 11 5
12461
+ image delete gitlogominus
12462
+
12463
+ image create photo gitlogoplus -width 4 -height 4
12464
+ gitlogoplus put #008000 -to 1 0 3 4
12465
+ gitlogoplus put #008000 -to 0 1 4 3
12466
+ gitlogo copy gitlogoplus -to 1 9
12467
+ gitlogo copy gitlogoplus -to 6 9
12468
+ gitlogo copy gitlogoplus -to 11 9
12469
+ image delete gitlogoplus
12470
+
12471
+ image create photo gitlogo32 -width 32 -height 32
12472
+ gitlogo32 copy gitlogo -zoom 2 2
12473
+
12474
+ wm iconphoto . -default gitlogo gitlogo32
12475
+ }
12473
12476
}
12474
12477
# wait for the window to become visible
12475
12478
tkwait visibility .
0 commit comments