put the palette size in a constant

This commit is contained in:
Daniel Micay 2012-06-24 23:15:50 -04:00
parent 9bd628d66d
commit a5fa9c0a05
1 changed files with 3 additions and 2 deletions

View File

@ -400,7 +400,8 @@ static void load_config(GtkWindow *window, VteTerminal *vte,
vte_terminal_set_opacity(vte, (guint16)(0xffff * (1 - cfgdouble)));
}
GdkColor color, palette[16];
static const long palette_size = 16;
GdkColor color, palette[palette_size];
static const char *colors[8] = {"black", "red", "green", "yellow",
"blue", "magenta", "cyan", "white"};
@ -426,7 +427,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte,
}
if (success) {
vte_terminal_set_colors(vte, NULL, NULL, palette, 16);
vte_terminal_set_colors(vte, NULL, NULL, palette, palette_size);
}
if (get_config_color(config, "foreground", &color)) {