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]

Re: question about function combobox


Tom> Is there a reason why the function names aren't alphabetical?
Tom> This would be a simple change in SrcWin::fillFuncCB.

And here it is.
Ok to commit?

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* library/srcwin.itb (SrcWin::fillFuncCB): Sort function names.

Index: library/srcwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srcwin.itb,v
retrieving revision 1.15
diff -u -r1.15 srcwin.itb
--- library/srcwin.itb 2001/06/04 15:49:53 1.15
+++ library/srcwin.itb 2001/08/23 23:48:28
@@ -386,7 +386,7 @@
       _set_name ""
       return
     }
-    foreach f $listfuncs {
+    foreach f [lsort -increasing $listfuncs] {
       lassign $f func mang
       set _mangled_func($func) $mang
       $_statbar.func list insert end $func


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