Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mw6F8-0003eU-3F for mharc-grub-devel@gnu.org; Thu, 08 Oct 2009 23:34:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mw6F6-0003e3-9s for grub-devel@gnu.org; Thu, 08 Oct 2009 23:34:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mw6F0-0003dH-SP for grub-devel@gnu.org; Thu, 08 Oct 2009 23:34:08 -0400 Received: from [199.232.76.173] (port=53369 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mw6F0-0003dE-Mz for grub-devel@gnu.org; Thu, 08 Oct 2009 23:34:02 -0400 Received: from mail-pz0-f192.google.com ([209.85.222.192]:57085) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mw6F0-0000GY-B2 for grub-devel@gnu.org; Thu, 08 Oct 2009 23:34:02 -0400 Received: by pzk30 with SMTP id 30so2616933pzk.24 for ; Thu, 08 Oct 2009 20:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=k3TL1/y6Ev6lPhQ0rcyIrLTMQQL2/nZyg9q5ceVTxEg=; b=eDPXG/xQcKIpobksqOlxxeVImxJlc48k4NBOfjwqfMx4Ax1u1Fkzof+UEXjCGn9mx1 eXyj5rwL9Mj4VAgYpJN8B59MLrfXC+1D3pIl4RFw5DuF6x+4hw9ZZQEZzlCImpzgIMWW Z7d3ZLodtWPdFyk/0EOvZriR6ofbSUgwBL7FM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=SV70nUaUei+m/2a7fYj/PMuaubtPVI5w37W+bOsJTUCX/iUXiBtf75gIXxSm1flGsR Lg5Hk0/QlWIbfb+1wnSHxmhE/cn3GZceRpY9kNYjoOc0QDUueJ28DQC3vlUQCVnNTG0c KbZ29qOsbxv2c+qIAW9IUGtaMI7eAokH9f1DU= MIME-Version: 1.0 Received: by 10.140.161.3 with SMTP id j3mr233312rve.27.1255059240984; Thu, 08 Oct 2009 20:34:00 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Oct 2009 11:34:00 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2009 03:34:08 -0000 On Fri, Oct 9, 2009 at 5:46 AM, Michal Suchanek wrote= : > 2009/10/8 Bean : >> On Thu, Oct 8, 2009 at 7:18 PM, Michal Suchanek wr= ote: >>>> 2, You should use far position as you want to extend the widget at the >>>> far side (top). >>> >>> This dependency is a problem. The rules for creating a working layout >>> are then complicated and hard to understand. >>> >>> Also I have no idea why I should set position on the screen, it is >>> never positioned. >> >> Hi, >> >> For example, if parent width=3D10, two children, width=3D4, then the >> extend property decide how to assign the extra 2 space: >> >> extend=3Dfirst, space is added to first widget, which is 6,4 >> extend=3Dall, space is distributed to alls widget, which is 5,5 >> extend=3Dlast, space is added to last widget, which is 4,6 > > This should not be necessary. The default is to wrap the children with > any spacing the children specify. =A0This should work nicely for layouts > similar to the current gfxterm. > > If the panel is larger (because it is itself extended or fixed-width) > then children are packed at the start (which is determined by > direction). This should work nicely for buttons in a dialog box, for > example. If a dialog has two buttons they should be placed together, > placing one on each end can easily lead to situation when the user > notices only one of the buttons. > > If you want to explicitly control which children get the available > space then finer granularity is again achieved by setting properties > on the chidren. Any child that has the expand property will take a > share of the surplus space. If you want children to take space without > growing add another property which specifies that the space should be > taken without expanding the element. Hi, What if more than one children has the extend property, for example, how do we handle config like this: panel { panel { halign=3D"extend" } panel { } panel { halign=3D"extend"} panel { } } > > For example, gtk2 has properties expand and fill. Expand means that > the element will take surplus space and fill means that the element > enlarges to fill the surplus space. > > With these properties you can specify that third element out of four > can get extra space which is not available with extend property on the > parent. It is also more natural because you set the properties on the > element you want to grow together with its other dimensions. > > Thanks > > Michal > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/