Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mr7dB-0005Lw-8N for mharc-grub-devel@gnu.org; Fri, 25 Sep 2009 06:02:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mr7d9-0005KY-FT for grub-devel@gnu.org; Fri, 25 Sep 2009 06:02:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mr7d4-0005HY-3I for grub-devel@gnu.org; Fri, 25 Sep 2009 06:02:22 -0400 Received: from [199.232.76.173] (port=38764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mr7d3-0005HH-Sy for grub-devel@gnu.org; Fri, 25 Sep 2009 06:02:17 -0400 Received: from mail-px0-f178.google.com ([209.85.216.178]:55797) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mr7d3-00067J-EF for grub-devel@gnu.org; Fri, 25 Sep 2009 06:02:17 -0400 Received: by pxi8 with SMTP id 8so3099713pxi.27 for ; Fri, 25 Sep 2009 03:02:16 -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=5nTqT0X/aG36SQd7wIDwQvnZSBfTHap6mQlM2iC73f8=; b=UYPLEzlVDtJxiWE7se7WsbibcwTCUp+TeM3HvM+nL3+owwiYtqZ+ztgwGqNxn7hb6D FZdW7WwnVB+JK/AmvkCtS3D3kxlQZ98eYJ3K6JH0hXPdUY/VtZkNQBbTAn49LVqzitNO uIATHLL/kilrqcPmUf7WYMALJO05kUN5HnKHA= 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=QJXPPfS82qHU2qYZnaFvKXqVZOp7HFiZngorsMHGSSvMMggGzQTOiZuuI6tZHx7JZu w9rJCs/Au0tcPSDURDCgr8u0w0s3lr61Oa498aa/ohgk27KKf+fEu4C3Gdx7wRYyigVG YUIaR4rcgk6SAGM+c6UD6LQJ6100hHo3G5ef0= MIME-Version: 1.0 Received: by 10.140.203.18 with SMTP id a18mr270701rvg.217.1253872936518; Fri, 25 Sep 2009 03:02:16 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 Sep 2009 18:02:16 +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, 25 Sep 2009 10:02:23 -0000 On Fri, Sep 25, 2009 at 5:46 PM, Michal Suchanek wrot= e: > 2009/9/25 Bean : >> On Fri, Sep 25, 2009 at 5:00 PM, Michal Suchanek w= rote: >>> If I understand it correctly this means that a panel is a bunch of >>> cells which are laid out horizontally and at some random point (but at >>> most after max_columns cells) a row break is inserted and the later >>> cells start in a new row. >>> >>> I would prefer a more deterministic approach: the panel is either one >>> column or one row (vertical or horizontal). >>> This should cover the common cases, real tables are seldom needed. >> >> Hi, >> >> But max_columns can cover both case, >> >> max_columns =3D 1 >> one column >> >> max_columns =3D 1000 =A0(or any big number) >> one row, we could also use special number -1 to indicate infinite >> number of widgets. >> > > OK, it does but it is quite confusing way of achieving that. > > What do the other possible values give you, though? > > If I set max_colums to 3 then I get rows of 1-3 cells, > non-deterministically. I can't say =A0in what row or column a particular > cell will be. Is such layout useful for anything? Hi, If max_columns =3D 3, then every row has three widgets, except for the last one, which can have 1 or 2 widgets. We can draw n * 3 tables with it. --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/