[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201212181942.38037.yann.morin.1998@free.fr>
Date: Tue, 18 Dec 2012 19:42:37 +0100
From: "Yann E. MORIN" <yann.morin.1998@...e.fr>
To: linux-kbuild@...r.kernel.org
Cc: Wang YanQing <udknight@...il.com>, mmarek@...e.cz,
linux-kernel@...r.kernel.org, rdunlap@...otime.net, bp@...en8.de,
sakiwit@...il.com, lacombar@...il.com,
lucas.demarchi@...fusion.mobi, dave@....org,
paul.gortmaker@...driver.com, crquan@...il.com, bpoirier@...e.de
Subject: Re: [PATCH 1/2 v2] menuconfig: Add Save/Load buttons
Wang, All,
On Tuesday 18 December 2012 Wang YanQing wrote:
> If menuconfig have Save/Load button like alternative
> .config editors, xconfig, nconfig, etc.We will have
> a obvious benefit when use menuconfig just like
> when we use others, we can Save/Load our .config quickly
> and conveniently.
>
> This patch add the Save/Load button for menuconfig.
>
> [remove trailing space while at it for below line:
> "*) Formerly when I used Page Down and Page Up, the cursor would be set"
> ]
>
> Changes:
> V1-V2:
> 1:use PATH_MAX instead of hard code suggested by Yann E. MORIN
> 2:drop the spurious empty-line removal suggested by Yann E. MORIN
The "Changes" section should have been after the '---' mark, below, to
avoid it being in the commit log.
> Signed-off-by: Wang YanQing <udknight@...il.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@...e.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@...e.fr>
It works very well, and really mimicks the behavior we have in nconf! :-)
(But see a very minor comment below.)
> ---
> scripts/kconfig/lxdialog/menubox.c | 20 +++++++++++---------
> scripts/kconfig/mconf.c | 30 +++++++++++++++++++++++++-----
> 2 files changed, 36 insertions(+), 14 deletions(-)
>
> diff --git a/scripts/kconfig/lxdialog/menubox.c b/scripts/kconfig/lxdialog/menubox.c
> index 1d60473..8b534d5 100644
> --- a/scripts/kconfig/lxdialog/menubox.c
> +++ b/scripts/kconfig/lxdialog/menubox.c
[--SNIP--]
> @@ -154,12 +154,14 @@ static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x,
> */
> static void print_buttons(WINDOW * win, int height, int width, int selected)
> {
> - int x = width / 2 - 16;
> + int x = width / 2 - 26;
That's not well centered (sorry, I initially missed it), this should
have been '28':
( nb_buttons * button_size + (nb_buttons - 1) * button_separation ) / 2
( 5 * 8 + ( 5 - 1) * 4 ) / 2 = 28
But that's just eye-candy, and only is only obvious on very small terminals.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists