LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] qconf: Back button behaviour normalization
@ 2007-01-13 17:06 Cyrill V. Gorcunov
0 siblings, 0 replies; only message in thread
From: Cyrill V. Gorcunov @ 2007-01-13 17:06 UTC (permalink / raw)
To: Roman Zippel; +Cc: linux-kernel-list, Cyrill V. Gorcunov
This patch does "Back" button behaviour normalization so
it is enabled starting from second-level menu only.
Signed-off-by: Cyrill V. Gorcunov <gorcunov@gmail.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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-13 17:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-13 17:06 [PATCH] qconf: Back button behaviour normalization Cyrill V. Gorcunov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).