From: "Cyrill V. Gorcunov" <gorcunov@gmail.com>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: linux-kernel-list <linux-kernel@vger.kernel.org>,
"Cyrill V. Gorcunov" <gorcunov@gmail.com>
Subject: [PATCH] qconf: Back button behaviour normalization
Date: Sat, 13 Jan 2007 20:06:44 +0300 [thread overview]
Message-ID: <20070113170644.GA2415@cvg> (raw)
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)
reply other threads:[~2007-01-13 17:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070113170644.GA2415@cvg \
--to=gorcunov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.