From owner-freebsd-libh Fri Oct 13 12:10: 6 2000 Delivered-To: freebsd-libh@freebsd.org Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by hub.freebsd.org (Postfix) with ESMTP id D29B737B670 for ; Fri, 13 Oct 2000 12:10:00 -0700 (PDT) Received: from fmrl03.sul.t-online.de by mailout01.sul.t-online.com with smtp id 13kADP-0001qu-01; Fri, 13 Oct 2000 21:09:59 +0200 Received: from neutron.cichlids.com (520050424122-0001@[62.225.194.75]) by fmrl03.sul.t-online.com with esmtp id 13kADO-079Xt2C; Fri, 13 Oct 2000 21:09:58 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 3DDD0AB9C for ; Fri, 13 Oct 2000 21:11:39 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id A0CF714B29; Fri, 13 Oct 2000 21:09:51 +0200 (CEST) Date: Fri, 13 Oct 2000 21:09:51 +0200 To: libh@freebsd.org Subject: bug-finding-help requested Message-ID: <20001013210951.A42997@cichlids.cichlids.com> References: <200010131856.NAA54461@usw4.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200010131856.NAA54461@usw4.freebsd.org>; from alex@usw4.freebsd.org on Fri, Oct 13, 2000 at 01:56:29PM -0500 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. From: alex@big.endian.de (Alexander Langer) X-Sender: 520050424122-0001@t-dialin.net Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Alexander Langer (alex@usw4.freebsd.org): > Add arrangement stuff to GroupWidgets. I have a VERY odd bug here. I REALLY don't know where it comes from and why it happens. Someone please try it out and tell me. Just run the simple-button example and look at the source: The buttons are added in order 1,2,3,4. Usually, thy should be ordered like this: [ button 1 ] [ button 2 ] [ button 3 ] [ button 4 ] But instead, the two lines are revererted: [ button 2 ] [ button 3 ] [ button 4 ] [ button 1 ] This is because of the list that contains the subwidgets for each group-widget. It adds new items with push_back(), which correctly works for the lower part. However, if I change that to push_front(), I get: [ button 1 ] [ button 4 ] [ button 3 ] [ button 2 ] so, it's completely revereted, as expected. What I wonder is: class Subwidgets is used by both, ContainerWidget AND GroupWidget. The SAME class! So why does it order the widgets in the correct order for ContainerWidgets (the thing that contains the three buttons in horizontal order) and in the reverted order for GroupWidgets? I can't find the bug here. Help is appreciated. Thanks in advance Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message