git-gui: Include the Tcl/Tk version in the about dialog.
Users may need to know what version of Tcl they are running git-gui under, in case there is an interesting interface quirk or other compatability problem we don't know about right now that we may need to explore (and maybe fix). Since its simple enough to show a line with this version data we should do so. We also try to reduce the amount of text shown as often the Tcl and Tk version numbers will be identical; when this happens we should only show the one version number. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Nov 21, 2006 at 02:46 UTC
53f7a33bdc89a6ec870fdce5221c05a2759974d3
1 file changed
+12
-3
git-gui
+12
-3
@@ -9,8 +9,7 @@ All rights reserved.
9
10
This program is free software; it may be used, copied, modified
11
and distributed under the terms of the GNU General Public Licence,
12
-either version 2, or (at your option) any later version.
13
-}
12
+either version 2, or (at your option) any later version.}
13
14
set appname [lindex [file split $argv0] end]
15
set gitdir {}
@@ -2166,6 +2165,7 @@ proc do_commit {} {
2165
2166
proc do_about {} {
2167
global appname copyright
2168
+ global tcl_patchLevel tk_patchLevel
2169
2170
set w .about_dialog
2171
toplevel $w
@@ -2193,8 +2193,17 @@ $copyright" \
2193
-font font_ui
2194
pack $w.desc -side top -fill x -padx 5 -pady 5
2195
2196
+ set v [exec git --version]
2197
+ append v "\n\n"
2198
+ if {$tcl_patchLevel eq $tk_patchLevel} {
2199
+ append v "Tcl/Tk version $tcl_patchLevel"
2200
+ } else {
2201
+ append v "Tcl version $tcl_patchLevel"
2202
+ append v ", Tk version $tk_patchLevel"
2203
+ }
2204
+
2205
label $w.vers \
2197
- -text [exec git --version] \
2206
+ -text $v \
2207
-padx 5 -pady 5 \
2208
-justify left \
2209
-anchor w \