From e799a075ff691d6064307f0e96320486edfc3a14 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Fri, 8 Jun 2012 14:52:17 -0400 Subject: [PATCH] Make cursor_* case insensitive --- termite.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/termite.c b/termite.c index 3b25c09..d9e4e57 100644 --- a/termite.c +++ b/termite.c @@ -324,22 +324,22 @@ static void load_config(GtkWindow *window, VteTerminal *vte, bool first_run, } if (get_config_string(config, "options", "cursor_blink", &cfgstr)) { - if (!strcmp(cfgstr, "SYSTEM")) { + if (!g_ascii_strcasecmp(cfgstr, "system")) { vte_terminal_set_cursor_blink_mode(vte, VTE_CURSOR_BLINK_SYSTEM); - } else if (!strcmp(cfgstr, "ON")) { + } else if (!g_ascii_strcasecmp(cfgstr, "on")) { vte_terminal_set_cursor_blink_mode(vte, VTE_CURSOR_BLINK_ON); - } else if (!strcmp(cfgstr, "OFF")) { + } else if (!g_ascii_strcasecmp(cfgstr, "off")) { vte_terminal_set_cursor_blink_mode(vte, VTE_CURSOR_BLINK_OFF); } g_free(cfgstr); } if (get_config_string(config, "options", "cursor_shape", &cfgstr)) { - if (!strcmp(cfgstr, "BLOCK")) { + if (!g_ascii_strcasecmp(cfgstr, "block")) { vte_terminal_set_cursor_shape(vte, VTE_CURSOR_SHAPE_BLOCK); - } else if (!strcmp(cfgstr, "IBEAM")) { + } else if (!g_ascii_strcasecmp(cfgstr, "ibeam")) { vte_terminal_set_cursor_shape(vte, VTE_CURSOR_SHAPE_IBEAM); - } else if (!strcmp(cfgstr, "UNDERLINE")) { + } else if (!g_ascii_strcasecmp(cfgstr, "underline")) { vte_terminal_set_cursor_shape(vte, VTE_CURSOR_SHAPE_UNDERLINE); } g_free(cfgstr);