Date: 02 Jun 2002 14:15:31 -0700 From: Max Okumoto <okumoto@ucsd.edu> To: The Anarcat <anarcat@anarcat.ath.cx> Cc: libh@FreeBSD.ORG Subject: Re: cvs commit: libh/include/hui HuiTVObjects.hh libh/lib/hui HuiTVision_ButtonsGroupWidget.cc HuiTVision_CheckBoxesWidget.cc HuiTVision_InputLineWidget.cc HuiTVision_LabelWidget.cc HuiTVision_ListBoxWidget.cc HuiTVision_ProgressIndicatorWidget.cc HuiTVision_RadioMenuWidget.cc Message-ID: <hfk7ph9ybw.fsf@multivac.sdsc.edu> In-Reply-To: The Anarcat's message of "Sat, 1 Jun 2002 20:41:11 -0400" References: <20020601074915.C9BFB17407@usw4.freebsd.org> <20020602004111.GC357@lenny.anarcat.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
I am trying to find bugs in the widget layout code. The only time these functions are called is from the constructors. No other objects call minSize() or maxSize(), nor can you call them from tcl. In all cases the results are directly feed into resize() in the constructor. But in most cases, the widget constructor already sizes the object to the correct size... so its redundent to resize it again. The constructors that require resize need to be fixed. FooWidget { /** Constructor. */ FooWidget() { resize(minSize()); } }; The Anarcat <anarcat@anarcat.ath.cx> writes: > On Sat Jun 01, 2002 at 02:49:15AM -0500, Max Okumoto wrote: > > > > Removed minSize() from all the HuiTVision objects. > > Why is this necessary? > > A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hfk7ph9ybw.fsf>