aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf.c b/src/conf.c
index c02df52cf..557024dc5 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -25,6 +25,7 @@
#include "support.h"
#include "command.h"
#include "colors.h"
+#include "screen_list.h"
#include <ctype.h>
#include <stdio.h>
@@ -81,10 +82,6 @@ typedef enum {
KEY_PARSER_DONE
} key_parser_state_t;
-
-extern gint screen_get_id(char *name);
-
-
static gboolean
str2bool(char *str)
{
@@ -337,7 +334,7 @@ check_screen_list(char *value)
j=0;
while( tmp && tmp[i] ) {
tmp[i] = lowerstr(tmp[i]);
- if( screen_get_id(tmp[i]) == -1 )
+ if (screen_lookup_name(tmp[i]) == NULL)
fprintf(stderr,
_("Error: Unsupported screen \"%s\"\n"),
tmp[i]);