Re: [PATCH] xconfig: set title bar

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Saturday, October 20, 2007 - 11:18 am

On Sat, 20 Oct 2007 19:14:03 +0200 Sam Ravnborg wrote:


Thanks, your search expressions were better than mine.


You want all 3 of them converted to
	symbol_value(mainmenu) + $KERNELVERSION
?

---
From: Randy Dunlap <randy.dunlap@oracle.com>

Put kernel version info on title bar in xconfig (qconf) instead of
defaulting to "qconf".

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 scripts/kconfig/qconf.cc |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-2.6.23-git13.orig/scripts/kconfig/qconf.cc
+++ linux-2.6.23-git13/scripts/kconfig/qconf.cc
@@ -1274,8 +1274,12 @@ ConfigMainWindow::ConfigMainWindow(void)
 	QMenuBar* menu;
 	bool ok;
 	int x, y, width, height;
+	char title[256];
 
 	QWidget *d = configApp->desktop();
+	sprintf(title, _("Linux Kernel v%s Configuration"),
+		getenv("KERNELVERSION"));
+	setCaption(title);
 
 	width = configSettings->readNumEntry("/window width", d->width() - 64);
 	height = configSettings->readNumEntry("/window height", d->height() - 64);

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] xconfig: set title bar, Randy Dunlap, (Fri Oct 19, 2:55 pm)
Re: [PATCH] xconfig: set title bar, Sam Ravnborg, (Sat Oct 20, 10:14 am)
Re: [PATCH] xconfig: set title bar, Sam Ravnborg, (Sat Oct 20, 11:12 am)
Re: [PATCH] xconfig: set title bar, Randy Dunlap, (Sat Oct 20, 11:14 am)
Re: [PATCH] xconfig: set title bar, Randy Dunlap, (Sat Oct 20, 11:18 am)
Re: [PATCH] xconfig: set title bar, Sam Ravnborg, (Sat Oct 20, 11:30 am)