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]

[RFA] fix tab size spinner


More brain-damaged iwidgets.  The tab size spinner does not initialize itself 
to the textvariable, instead it initializes the textvariable.

2001-10-11  Martin M. Hunt  <hunt@redhat.com>

	* library/srcpref.itb: Initialize spinint to correct
	value for tab size.

Index: srcpref.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srcpref.itb,v
retrieving revision 1.3
diff -u -p -r1.3 srcpref.itb
--- srcpref.itb	2001/10/04 15:01:36	1.3
+++ srcpref.itb	2001/10/11 18:56:23
@@ -129,14 +129,17 @@ body SrcPref::build_win {} {
   grid columnconfigure $f.rmv 2 -weight 1
   grid rowconfigure $f.rmv 0 -weight 1
 
-
   frame $f.x
+
   # Tab size
+  set tab_size [pref get gdb/src/tab_size]
   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
   }
+  $f.x.size delete 0 end
+  $f.x.size insert end $tab_size
 
   # Linenumbers
   # commented out because this option isn't really useful

-- 
Martin Hunt
GDB Engineer
Red Hat, Inc.


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