summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0636486)
raw | patch | inline | side by side (parent: 0636486)
author | David Shakaryan <omp@gentoo.org> | |
Mon, 22 Sep 2008 03:59:56 +0000 (05:59 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 06:05:45 +0000 (08:05 +0200) |
"welcome-screen-list" shows the screen list in the top row shortly
after startup, and is enabled by default.
after startup, and is enabled by default.
src/conf.c | patch | blob | history | |
src/options.c | patch | blob | history | |
src/options.h | patch | blob | history | |
src/screen.c | patch | blob | history |
diff --git a/src/conf.c b/src/conf.c
index ac48e9cdb5cde94f644fdbc19bb22c9585c76dcf..c02df52cf42f79e19273c0b8ca96aef27076f8d9 100644 (file)
--- a/src/conf.c
+++ b/src/conf.c
#define CONF_SCROLL "scroll"
#define CONF_SCROLL_SEP "scroll-sep"
#define CONF_VISIBLE_BITRATE "visible-bitrate"
+#define CONF_WELCOME_SCREEN_LIST "welcome-screen-list"
typedef enum {
KEY_PARSER_UNKNOWN,
{
options->wide_cursor = str2bool(value);
}
+ /* welcome screen list */
+ else if (!strcasecmp(CONF_WELCOME_SCREEN_LIST, name)) {
+ options->welcome_screen_list = str2bool(value);
+ }
/* visible bitrate */
else if (!strcasecmp(CONF_VISIBLE_BITRATE, name)) {
options->visible_bitrate = str2bool(value);
diff --git a/src/options.c b/src/options.c
index 34772460f2045041a531d9544890690b63dbf60d..1ac3195317e335d1f607b23dbc4a5480a266f090 100644 (file)
--- a/src/options.c
+++ b/src/options.c
options.reconnect = TRUE;
options.find_wrap = TRUE;
options.wide_cursor = TRUE;
+ options.welcome_screen_list = TRUE;
options.audible_bell = TRUE;
options.crossfade_time = DEFAULT_CROSSFADE_TIME;
options.seek_time = 1;
diff --git a/src/options.h b/src/options.h
index 58eaff13073cf52455171c86668890ae3d32e0b6..f29014cbd19f91fa26beb0aa5b01a6f6e964c35a 100644 (file)
--- a/src/options.h
+++ b/src/options.h
gboolean enable_mouse;
gboolean scroll;
gboolean visible_bitrate;
+ gboolean welcome_screen_list;
} options_t;
#ifndef NO_GLOBAL_OPTIONS
diff --git a/src/screen.c b/src/screen.c
index c526e66cc57d93cbd39c15f0a3db8d9ec19ce602..2999b598ed0e3ae2403b4125c98161932b88ae25 100644 (file)
--- a/src/screen.c
+++ b/src/screen.c
}
/* update title/header window */
- if (welcome && screen.last_cmd==CMD_NONE &&
+ if (welcome && options.welcome_screen_list &&
+ screen.last_cmd==CMD_NONE &&
time(NULL)-screen.start_timestamp <= SCREEN_WELCOME_TIME)
paint_top_window("", c, 0);
else if (mode_fn->get_title != NULL) {