Re: [PATCH 2/2] cfdisk: swap order of '[Help]' and '[New]' items on menu for non allocated space.'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Karel Zak wrote:
 why we need this change? Wouldn't it be better to use [New] as a
 default item in the menu rather than change the order of items?

ok, patch updated.

Thanks,
--
Francesco Cosoleto

What gets us into truoble is not what we don't know. It's what we know for sure that just ain't so. (Mark Twain)
>From b6cedb72be1f27777eecd56e6a145af40297cf2e Mon Sep 17 00:00:00 2001
From: Francesco Cosoleto <cosoleto@xxxxxxxxx>
Date: Thu, 11 Feb 2010 20:03:41 +0100
Subject: [PATCH] cfdisk: set '[New]' as default item on menu for non allocated space instead of '[Help]'.

Signed-off-by: Francesco Cosoleto <cosoleto@xxxxxxxxx>
---
 fdisk/cfdisk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c
index f871cc4..8de285b 100644
--- a/fdisk/cfdisk.c
+++ b/fdisk/cfdisk.c
@@ -2627,7 +2627,7 @@ do_curses_fdisk(void) {
 	if (p_info[cur_part].id == FREE_SPACE) {
 	    s = ((opentype == O_RDWR) ? "hnpquW" : "hnpqu");
 	    command = menuSelect(COMMAND_LINE_Y, COMMAND_LINE_X, menuMain, 10,
-	        s, MENU_HORIZ | MENU_BUTTON | MENU_ACCEPT_OTHERS, 0);
+	        s, MENU_HORIZ | MENU_BUTTON | MENU_ACCEPT_OTHERS, 5);
 	} else if (p_info[cur_part].id > 0) {
 	    s = ((opentype == O_RDWR) ? "bdhmpqtuW" : "bdhmpqtu");
 	    command = menuSelect(COMMAND_LINE_Y, COMMAND_LINE_X, menuMain, 10,
-- 
1.6.6.1


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux