git-gui: Move console procs into their own namespace

To help modularize git-gui better I'm isolating the code and
variables required to handle our little console windows into
their own namespace.  This way we can say console::new rather
than new_console, and the hidden internal procs to create the
window and read data from our filehandle are off in their own
private little land, where most users don't see them.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce
2007-05-01 02:59:53 -04:00
parent f522c9b5ed
commit a35d65d9c8
4 changed files with 57 additions and 39 deletions

View File

@ -120,14 +120,14 @@ Please select fewer branches. To merge more than 15 branches, merge the branche
set msg "Merging $current_branch, [join $names {, }]"
set ui_status_value "$msg..."
set cons [new_console "Merge" $msg]
console_exec $cons $cmd [list finish_merge $revcnt]
set cons [console::new "Merge" $msg]
console::exec $cons $cmd [list finish_merge $revcnt]
bind $w <Destroy> {}
destroy $w
}
proc finish_merge {revcnt w ok} {
console_done $w $ok
console::done $w $ok
if {$ok} {
set msg {Merge completed successfully.}
} else {