From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: Keith Seitz Cc: Insight Maling List Subject: Re: [PATCH] Eliminate Tix from download dialog Date: Mon, 16 Jul 2001 06:56:00 -0000 Message-id: <3B5168B0.2BE7D8F7@cygnus.com> References: X-SW-Source: 2001-q3/msg00017.html Keith Seitz wrote: > > Hi, > > I've committed a patch which removes our reliance of tix in the download > dialog. > > Unfortunately, there are some iwidgets bugs which prevent this from > working just right. It is mostly fixed in a newer version of iwidgets, but > for now, here's the patch for iwidgets to make this work properly. (This > is only a cosmetic issue.) > > Index: itcl/iwidgets3.0.0/generic/feedback.itk > =================================================================== > RCS file: /cvs/src/src/itcl/iwidgets3.0.0/generic/feedback.itk,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 feedback.itk > --- feedback.itk 2000/02/07 00:19:46 1.1.1.1 > +++ feedback.itk 2001/07/14 00:00:51 > @@ -172,6 +172,7 @@ configbody iwidgets::Feedback::steps { > # > ----------------------------------------------------------------------------- > body iwidgets::Feedback::_display {} { > set troughwidth [winfo width $itk_component(trough)] > + incr troughwidth [expr {-2 * [cget -borderwidth]}] > set _barwidth [expr $troughwidth.0/$itk_option(-steps)] > set fraction [expr int((1.0*$_stepval)/$itk_option(-steps)*100.0)] > > @@ -203,5 +204,8 @@ body iwidgets::Feedback::step {{inc 1}} > } > > incr _stepval $inc > + if {$_stepval > $itk_option(-steps)} { > + set _stepval $itk_option(-steps) > + } > _display > } > > We'll see about getting our itcl fixed and getting our change back into > the itcl repository. (Or we'll write our own feedback widget and put it in > libgui.) > > Keith > I am sure Michael will appreciate that you send the patch and will incorporate it. It is nice to see the Tix -> iwidgets+BLT finally moving forward. Thank you very much! -- Fernando Nasser Red Hat - Toronto E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9