summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 350a35f)
raw | patch | inline | side by side (parent: 350a35f)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 25 Jul 2007 08:32:18 +0000 (04:32 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 25 Jul 2007 08:32:18 +0000 (04:32 -0400) |
Misc. code cleanups in the merge dialog's binding setup and action
button creation.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
button creation.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/merge.tcl | patch | blob | history |
diff --git a/lib/merge.tcl b/lib/merge.tcl
index f8d92b320e2ec6ed50b235a429e9e4dee785bc28..62434ff310f80c180a31ae3ba985c7db2c3182ba 100644 (file)
--- a/lib/merge.tcl
+++ b/lib/merge.tcl
wm geometry $top "+[winfo rootx .]+[winfo rooty .]"
}
- set _visualize [cb _visualize]
set _start [cb _start]
label $w.header \
pack $w.header -side top -fill x
frame $w.buttons
- button $w.buttons.visualize -text Visualize -command $_visualize
+ button $w.buttons.visualize \
+ -text Visualize \
+ -command [cb _visualize]
pack $w.buttons.visualize -side left
- button $w.buttons.create -text Merge -command $_start
- pack $w.buttons.create -side right
+ button $w.buttons.merge \
+ -text Merge \
+ -command $_start
+ pack $w.buttons.merge -side right
button $w.buttons.cancel \
-text {Cancel} \
-command [cb _cancel]
bind $w <$M1B-Key-Return> $_start
bind $w <Key-Return> $_start
- bind $w <Visibility> [cb _visible]
bind $w <Key-Escape> [cb _cancel]
wm protocol $w WM_DELETE_WINDOW [cb _cancel]
+
+ bind $w.buttons.merge <Visibility> [cb _visible]
tkwait window $w
}