This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] Remove tix from SrcPref
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] Remove tix from SrcPref
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Tue, 28 Aug 2001 16:05:22 -0700 (PDT)
Hi,
This patch eliminates tix from SrcPref, the source window preferences
dialog.
Only three more references to tix in the source code!
Keith
ChangeLog
2001-08-28 Keith Seitz <keiths@redhat.com>
* library/srcpref.itb (build_win): Use iwidgets::spinint
instead of tixControl.
Patch
Index: library/srcpref.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srcpref.itb,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 srcpref.itb
--- srcpref.itb 2000/02/07 00:19:42 1.1.1.1
+++ srcpref.itb 2001/08/28 23:03:12
@@ -131,9 +131,11 @@ body SrcPref::build_win {} {
frame $f.x
# Tab size
- tixControl $f.x.size -label "Tab Size" -integer true -max 16 -min 1 \
- -variable [pref varname gdb/src/tab_size] \
- -options { entry.width 2 entry.font src-font}
+ itk_component add size {
+ iwidgets::spinint $f.x.size -labeltext "Tab Size" -range {1 16} \
+ -step 1 -fixed 2 -width 2 -textvariable [pref varname gdb/src/tab_size] \
+ -wrap 0
+ }
# Linenumbers
# commented out because this option isn't really useful