@@ -12192,7 +12192,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
12192
12192
set gitk_prefix [file dirname [file dirname [file normalize $argv0 ]]]
12193
12193
set gitk_libdir [file join $gitk_prefix share gitk lib]
12194
12194
set gitk_msgsdir [file join $gitk_libdir msgs]
12195
- unset gitk_prefix
12196
12195
}
12197
12196
12198
12197
# # Internationalization (i18n) through msgcat and gettext. See
@@ -12547,28 +12546,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
12547
12546
set worktree [exec git rev-parse --show-toplevel]
12548
12547
setcoords
12549
12548
makewindow
12550
- catch {
12551
- image create photo gitlogo -width 16 -height 16
12552
-
12553
- image create photo gitlogominus -width 4 -height 2
12554
- gitlogominus put #C00000 -to 0 0 4 2
12555
- gitlogo copy gitlogominus -to 1 5
12556
- gitlogo copy gitlogominus -to 6 5
12557
- gitlogo copy gitlogominus -to 11 5
12558
- image delete gitlogominus
12559
-
12560
- image create photo gitlogoplus -width 4 -height 4
12561
- gitlogoplus put #008000 -to 1 0 3 4
12562
- gitlogoplus put #008000 -to 0 1 4 3
12563
- gitlogo copy gitlogoplus -to 1 9
12564
- gitlogo copy gitlogoplus -to 6 9
12565
- gitlogo copy gitlogoplus -to 11 9
12566
- image delete gitlogoplus
12567
-
12568
- image create photo gitlogo32 -width 32 -height 32
12569
- gitlogo32 copy gitlogo -zoom 2 2
12570
-
12571
- wm iconphoto . -default gitlogo gitlogo32
12549
+ if {$::tcl_platform(platform) eq {windows} && [file exists $gitk_prefix /etc/git.ico]} {
12550
+ wm iconbitmap . -default $gitk_prefix /etc/git.ico
12551
+ } else {
12552
+ catch {
12553
+ image create photo gitlogo -width 16 -height 16
12554
+
12555
+ image create photo gitlogominus -width 4 -height 2
12556
+ gitlogominus put #C00000 -to 0 0 4 2
12557
+ gitlogo copy gitlogominus -to 1 5
12558
+ gitlogo copy gitlogominus -to 6 5
12559
+ gitlogo copy gitlogominus -to 11 5
12560
+ image delete gitlogominus
12561
+
12562
+ image create photo gitlogoplus -width 4 -height 4
12563
+ gitlogoplus put #008000 -to 1 0 3 4
12564
+ gitlogoplus put #008000 -to 0 1 4 3
12565
+ gitlogo copy gitlogoplus -to 1 9
12566
+ gitlogo copy gitlogoplus -to 6 9
12567
+ gitlogo copy gitlogoplus -to 11 9
12568
+ image delete gitlogoplus
12569
+
12570
+ image create photo gitlogo32 -width 32 -height 32
12571
+ gitlogo32 copy gitlogo -zoom 2 2
12572
+
12573
+ wm iconphoto . -default gitlogo gitlogo32
12574
+ }
12572
12575
}
12573
12576
# wait for the window to become visible
12574
12577
tkwait visibility .
0 commit comments