From 50c4dba4a464bd2db0c96850ce641f4b76e527ed Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 25 Sep 2013 02:22:31 +0000 Subject: [PATCH] Corrigindo problema na leitura da tabela de cores --- widget.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/widget.c b/widget.c index a87ec64..fcd0ddf 100644 --- a/widget.c +++ b/widget.c @@ -1276,7 +1276,13 @@ void v3270_set_color_table(GdkRGBA *table, const gchar *colors) trace("colors=[%s]",colors); - clr = g_strsplit(colors,",",V3270_COLOR_COUNT+1); + if(strchr(colors,':')) + clr = g_strsplit(colors,":",V3270_COLOR_COUNT+1); + else if(strchr(colors,';')) + clr = g_strsplit(colors,";",V3270_COLOR_COUNT+1); + else + clr = g_strsplit(colors,",",V3270_COLOR_COUNT+1); + cnt = g_strv_length(clr); switch(cnt) -- libgit2 0.21.2