This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] remove more tix
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] remove more tix
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Tue, 28 Aug 2001 17:26:12 -0700 (PDT)
Hi,
Two parts: removes our reliance on "tixOption" in bpwin and removes all
traces of the letters "tix" in all other files: main.tcl and variables.tcl
excepted.
All that is left is to figure out how to supply some sort of hierarchial
tree widget for the variable windows. I will follow-up with a discussion
thread.
[I'm SO excited!]
Keith
ChangeLog
2001-08-28 Keith Seitz <keiths@redhat.com>
* library/bpwin.itb (bp_select): Use standard preferences
for selection fg & bg, not tixOption database.
* process.itb, tracedlg.tcl: Remove all traces of those
three evil little letters, "t", "i", "x".
Patch
Index: library/bpwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/bpwin.itb,v
retrieving revision 1.7
diff -u -p -r1.7 bpwin.itb
--- bpwin.itb 2001/08/28 21:20:20 1.7
+++ bpwin.itb 2001/08/29 00:22:31
@@ -357,7 +357,7 @@ body BpWin::bp_restore {} {
# METHOD: bp_select - select a row in the grid
# ------------------------------------------------------------------
body BpWin::bp_select { r } {
- global tixOption _bp_en _bp_disp
+ global _bp_en _bp_disp
set zz [list addr file func line]
if {$tracepoints} {lappend zz num pass}
@@ -367,7 +367,7 @@ body BpWin::bp_select { r } {
set i $selected
foreach thing $zz {
- $twin.${thing}${i} configure -fg $tixOption(fg) -bg $bg1
+ $twin.${thing}${i} configure -fg [pref get gdb/font/select_fg] -bg $bg1
bind $twin.${thing}${i} <3> break
}
}
@@ -394,7 +394,8 @@ body BpWin::bp_select { r } {
}
foreach thing $zz {
- $twin.${thing}${r} configure -fg $tixOption(select_fg) -bg $tixOption(select_bg)
+ $twin.${thing}${r} configure -fg [pref get gdb/font/select_fg] \
+ -bg [pref get gdb/font/select_bg]
bind $twin.${thing}${r} <3> "tk_popup $Menu %X %Y"
}
Index: library/process.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/process.itb,v
retrieving revision 1.5
diff -u -p -r1.5 process.itb
--- process.itb 2001/08/28 22:36:40 1.5
+++ process.itb 2001/08/29 00:22:31
@@ -34,16 +34,14 @@ body ProcessWin::constructor {args} {
# METHOD: build_win - build the main process window
# ------------------------------------------------------------------
body ProcessWin::build_win {} {
- global tixOption tcl_platform
+ global tcl_platform
if {$tcl_platform(platform) == "windows"} {
- #tixScrolledListBox $itk_interior.s -scrollbar both -sizebox 1
set hsmode static
set vsmode static
ide_sizebox $itk_interior.sbox
place $itk_interior.sbox -relx 1.0 -rely 1.0 -anchor se
} else {
- #tixScrolledListBox $itk_interior.s -scrollbar auto
set hsmode dynamic
set vsmode dynamic
}
Index: library/tracedlg.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/tracedlg.tcl,v
retrieving revision 1.3
diff -u -p -r1.3 tracedlg.tcl
--- tracedlg.tcl 2001/08/29 00:14:08 1.3
+++ tracedlg.tcl 2001/08/29 00:22:31
@@ -301,7 +301,6 @@ class TraceDlg {
pack $pass_frame.ent -side right -padx 10 -pady 5
# Actions
- #tixScrolledListBox $act_frame.lb -scrollbar auto
set ActionLB $act_frame.lb
iwidgets::scrolledlistbox $act_frame.lb -hscrollmode dynamic \
-vscrollmode dynamic -selectmode multiple -exportselection 0 \