diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-03-18 05:48:46 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-05-02 14:58:09 -0400 |
commit | 95e30f9593ebf39e26227a20ae8d9f160c50fb67 (patch) | |
tree | 1ad3db38f47f079c7cd71251849de7e9778f3ef6 /scripts/kconfig/lxdialog | |
parent | dd7e54ade8f515ec38d5dc2129705352e2296f8e (diff) |
menuconfig: remember alternate config filename
When loading an alternate configuration use that file as
current configuration filename.
Make the filename visible in the dialog.
Default continue to be .config.
Inspired by patch from: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'scripts/kconfig/lxdialog')
-rw-r--r-- | scripts/kconfig/lxdialog/dialog.h | 1 | ||||
-rw-r--r-- | scripts/kconfig/lxdialog/util.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/kconfig/lxdialog/dialog.h b/scripts/kconfig/lxdialog/dialog.h index fd695e1070f7..7e17eba75ae8 100644 --- a/scripts/kconfig/lxdialog/dialog.h +++ b/scripts/kconfig/lxdialog/dialog.h | |||
@@ -188,6 +188,7 @@ int on_key_esc(WINDOW *win); | |||
188 | int on_key_resize(void); | 188 | int on_key_resize(void); |
189 | 189 | ||
190 | void init_dialog(const char *backtitle); | 190 | void init_dialog(const char *backtitle); |
191 | void set_dialog_backtitle(const char *backtitle); | ||
191 | void reset_dialog(void); | 192 | void reset_dialog(void); |
192 | void end_dialog(void); | 193 | void end_dialog(void); |
193 | void attr_clear(WINDOW * win, int height, int width, chtype attr); | 194 | void attr_clear(WINDOW * win, int height, int width, chtype attr); |
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c index a1a1354ba238..a1bddefe73d0 100644 --- a/scripts/kconfig/lxdialog/util.c +++ b/scripts/kconfig/lxdialog/util.c | |||
@@ -272,6 +272,11 @@ void init_dialog(const char *backtitle) | |||
272 | color_setup(getenv("MENUCONFIG_COLOR")); | 272 | color_setup(getenv("MENUCONFIG_COLOR")); |
273 | } | 273 | } |
274 | 274 | ||
275 | void set_dialog_backtitle(const char *backtitle) | ||
276 | { | ||
277 | dlg.backtitle = backtitle; | ||
278 | } | ||
279 | |||
275 | void reset_dialog(void) | 280 | void reset_dialog(void) |
276 | { | 281 | { |
277 | initscr(); /* Init curses */ | 282 | initscr(); /* Init curses */ |