summaryrefslogtreecommitdiff
path: root/gdb/gdbtk/library/globalpref.itb
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2001-06-05 21:59:54 +0000
committerMartin Hunt <hunt@redhat.com>2001-06-05 21:59:54 +0000
commit93d7f937214f1c421b527f0be4a1ec1e53462654 (patch)
treee5c3f0d7436c4531d961e087ca0742b9d4548221 /gdb/gdbtk/library/globalpref.itb
parent2cddc826bd0ab430edda80c21a1c1b05f36320e3 (diff)
downloadgdb-93d7f937214f1c421b527f0be4a1ec1e53462654.tar.gz
2001-06-05 Martin Hunt <hunt@redhat.com>
* library/globalpref.itb(build_win): Don't change directory before building icon combobox. Add debug lines.
Diffstat (limited to 'gdb/gdbtk/library/globalpref.itb')
-rw-r--r--gdb/gdbtk/library/globalpref.itb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbtk/library/globalpref.itb b/gdb/gdbtk/library/globalpref.itb
index d1c1cd768cd..bdef899859d 100644
--- a/gdb/gdbtk/library/globalpref.itb
+++ b/gdb/gdbtk/library/globalpref.itb
@@ -84,7 +84,6 @@ body GlobalPref::build_win {} {
lappend icondirlist $foo
}
}
- cd $curdir
set width 14
# load combobox
@@ -98,6 +97,7 @@ body GlobalPref::build_win {} {
set foo [file join $dir "icons.txt"]
if {[catch {::open $foo r} fid]} {
# failed
+ dbug E "couldn't open $foo:$fid"
if {$cdir} {$frame.icons.cb entryset "unknown icons"}
$frame.icons.cb list insert end "unknown icons"
} else {
@@ -113,7 +113,7 @@ body GlobalPref::build_win {} {
}
}
$frame.icons.cb configure -width $width
-
+ cd $curdir
# searching for fixed font families take a long time
# therefore, we cache the font names. The font cache