@@ -12092,7 +12092,6 @@ if { [info exists ::env(GITK_MSGSDIR)] } {
12092
12092
set gitk_prefix [file dirname [file dirname [file normalize $argv0 ]]]
12093
12093
set gitk_libdir [file join $gitk_prefix share gitk lib]
12094
12094
set gitk_msgsdir [file join $gitk_libdir msgs]
12095
- unset gitk_prefix
12096
12095
}
12097
12096
12098
12097
# # Internationalization (i18n) through msgcat and gettext. See
@@ -12284,28 +12283,32 @@ if {[expr {[exec git rev-parse --is-inside-work-tree] == "true"}]} {
12284
12283
set worktree [exec git rev-parse --show-toplevel]
12285
12284
setcoords
12286
12285
makewindow
12287
- catch {
12288
- image create photo gitlogo -width 16 -height 16
12289
-
12290
- image create photo gitlogominus -width 4 -height 2
12291
- gitlogominus put #C00000 -to 0 0 4 2
12292
- gitlogo copy gitlogominus -to 1 5
12293
- gitlogo copy gitlogominus -to 6 5
12294
- gitlogo copy gitlogominus -to 11 5
12295
- image delete gitlogominus
12296
-
12297
- image create photo gitlogoplus -width 4 -height 4
12298
- gitlogoplus put #008000 -to 1 0 3 4
12299
- gitlogoplus put #008000 -to 0 1 4 3
12300
- gitlogo copy gitlogoplus -to 1 9
12301
- gitlogo copy gitlogoplus -to 6 9
12302
- gitlogo copy gitlogoplus -to 11 9
12303
- image delete gitlogoplus
12304
-
12305
- image create photo gitlogo32 -width 32 -height 32
12306
- gitlogo32 copy gitlogo -zoom 2 2
12307
-
12308
- wm iconphoto . -default gitlogo gitlogo32
12286
+ if {$::tcl_platform(platform) eq {windows} && [file exists $gitk_prefix /etc/git.ico]} {
12287
+ wm iconbitmap . -default $gitk_prefix /etc/git.ico
12288
+ } else {
12289
+ catch {
12290
+ image create photo gitlogo -width 16 -height 16
12291
+
12292
+ image create photo gitlogominus -width 4 -height 2
12293
+ gitlogominus put #C00000 -to 0 0 4 2
12294
+ gitlogo copy gitlogominus -to 1 5
12295
+ gitlogo copy gitlogominus -to 6 5
12296
+ gitlogo copy gitlogominus -to 11 5
12297
+ image delete gitlogominus
12298
+
12299
+ image create photo gitlogoplus -width 4 -height 4
12300
+ gitlogoplus put #008000 -to 1 0 3 4
12301
+ gitlogoplus put #008000 -to 0 1 4 3
12302
+ gitlogo copy gitlogoplus -to 1 9
12303
+ gitlogo copy gitlogoplus -to 6 9
12304
+ gitlogo copy gitlogoplus -to 11 9
12305
+ image delete gitlogoplus
12306
+
12307
+ image create photo gitlogo32 -width 32 -height 32
12308
+ gitlogo32 copy gitlogo -zoom 2 2
12309
+
12310
+ wm iconphoto . -default gitlogo gitlogo32
12311
+ }
12309
12312
}
12310
12313
# wait for the window to become visible
12311
12314
tkwait visibility .
0 commit comments