@@ -12301,7 +12301,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
12301
12301
set gitk_prefix [file dirname [file dirname [file normalize $argv0 ]]]
12302
12302
set gitk_libdir [file join $gitk_prefix share gitk lib]
12303
12303
set gitk_msgsdir [file join $gitk_libdir msgs]
12304
- unset gitk_prefix
12305
12304
}
12306
12305
12307
12306
# # Internationalization (i18n) through msgcat and gettext. See
@@ -12664,28 +12663,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
12664
12663
set worktree [gitworktree]
12665
12664
setcoords
12666
12665
makewindow
12667
- catch {
12668
- image create photo gitlogo -width 16 -height 16
12669
-
12670
- image create photo gitlogominus -width 4 -height 2
12671
- gitlogominus put #C00000 -to 0 0 4 2
12672
- gitlogo copy gitlogominus -to 1 5
12673
- gitlogo copy gitlogominus -to 6 5
12674
- gitlogo copy gitlogominus -to 11 5
12675
- image delete gitlogominus
12676
-
12677
- image create photo gitlogoplus -width 4 -height 4
12678
- gitlogoplus put #008000 -to 1 0 3 4
12679
- gitlogoplus put #008000 -to 0 1 4 3
12680
- gitlogo copy gitlogoplus -to 1 9
12681
- gitlogo copy gitlogoplus -to 6 9
12682
- gitlogo copy gitlogoplus -to 11 9
12683
- image delete gitlogoplus
12684
-
12685
- image create photo gitlogo32 -width 32 -height 32
12686
- gitlogo32 copy gitlogo -zoom 2 2
12687
-
12688
- wm iconphoto . -default gitlogo gitlogo32
12666
+ if {$::tcl_platform(platform) eq {windows} && [file exists $gitk_prefix /etc/git.ico]} {
12667
+ wm iconbitmap . -default $gitk_prefix /etc/git.ico
12668
+ } else {
12669
+ catch {
12670
+ image create photo gitlogo -width 16 -height 16
12671
+
12672
+ image create photo gitlogominus -width 4 -height 2
12673
+ gitlogominus put #C00000 -to 0 0 4 2
12674
+ gitlogo copy gitlogominus -to 1 5
12675
+ gitlogo copy gitlogominus -to 6 5
12676
+ gitlogo copy gitlogominus -to 11 5
12677
+ image delete gitlogominus
12678
+
12679
+ image create photo gitlogoplus -width 4 -height 4
12680
+ gitlogoplus put #008000 -to 1 0 3 4
12681
+ gitlogoplus put #008000 -to 0 1 4 3
12682
+ gitlogo copy gitlogoplus -to 1 9
12683
+ gitlogo copy gitlogoplus -to 6 9
12684
+ gitlogo copy gitlogoplus -to 11 9
12685
+ image delete gitlogoplus
12686
+
12687
+ image create photo gitlogo32 -width 32 -height 32
12688
+ gitlogo32 copy gitlogo -zoom 2 2
12689
+
12690
+ wm iconphoto . -default gitlogo gitlogo32
12691
+ }
12689
12692
}
12690
12693
# wait for the window to become visible
12691
12694
tkwait visibility .
0 commit comments