1 # git-gui about git-gui dialog
2 # Copyright (C) 2006, 2007 Shawn Pearce
5 global appvers copyright oguilib
6 global tcl_patchLevel tk_patchLevel
10 wm geometry
$w "+[winfo rootx .]+[winfo rooty .]"
12 pack [git_logo
$w.git_logo
] -side left
-fill y
-padx 10 -pady 10
13 label $w.header
-text [mc
"About %s" [appname
]] \
15 pack $w.header
-side top
-fill x
18 button $w.buttons.
close -text {Close
} \
20 -command [list destroy $w]
21 pack $w.buttons.
close -side right
22 pack $w.buttons
-side bottom
-fill x
-pady 10 -padx 10
25 -text "[mc "git-gui
- a graphical user interface
for Git.
"]\n$copyright" \
31 pack $w.desc
-side top
-fill x
-padx 5 -pady 5
34 append v
"git-gui version $appvers\n"
35 append v
"[git version]\n"
37 if {$tcl_patchLevel eq
$tk_patchLevel} {
38 append v
"Tcl/Tk version $tcl_patchLevel"
40 append v
"Tcl version $tcl_patchLevel"
41 append v
", Tk version $tk_patchLevel"
45 append d
"git wrapper: $::_git\n"
46 append d
"git exec dir: [gitexec]\n"
47 append d
"git-gui lib: $oguilib"
56 pack $w.vers
-side top
-fill x
-padx 5 -pady 5
65 pack $w.dirs
-side top
-fill x
-padx 5 -pady 5
67 menu $w.ctxm
-tearoff 0
72 clipboard append -format STRING -type STRING -- \[$w.vers cget -text\]
75 bind $w <Visibility
> "grab $w; focus $w.buttons.close"
76 bind $w <Key-Escape
> "destroy $w"
77 bind $w <Key-Return
> "destroy $w"
78 bind_button3
$w.vers
"tk_popup $w.ctxm %X %Y; grab $w; focus $w"
79 wm title
$w "About [appname]"