This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Remove tix from SrcPref


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]