lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 13 Jan 2007 20:06:44 +0300
From:	"Cyrill V. Gorcunov" <gorcunov@...il.com>
To:	Roman Zippel <zippel@...ux-m68k.org>
Cc:	linux-kernel-list <linux-kernel@...r.kernel.org>,
	"Cyrill V. Gorcunov" <gorcunov@...il.com>
Subject: [PATCH] qconf: Back button behaviour normalization

This patch does "Back" button behaviour normalization so
it is enabled starting from second-level menu only. 

Signed-off-by: Cyrill V. Gorcunov <gorcunov@...il.com>

---

Roman, please check it... may be a better way does exist to do it.
The diff is produced over pure Linux v2.6.20-rc5

 scripts/kconfig/qconf.cc |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index c0ae0a7..34f1faf 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1467,7 +1467,10 @@ void ConfigMainWindow::searchConfig(void)
 void ConfigMainWindow::changeMenu(struct menu *menu)
 {
 	configList->setRootMenu(menu);
-	backAction->setEnabled(TRUE);
+	if (configList->rootEntry->parent == &rootmenu)
+		backAction->setEnabled(FALSE);
+	else
+		backAction->setEnabled(TRUE);
 }
 
 void ConfigMainWindow::setMenuLink(struct menu *menu)

-
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ