static void read_char_option(FILE *f, gchar *option, gchar *label, gchar *value, gchar **text)
{
- if (text && strcasecmp(option, label) == 0)
+ if (text && g_ascii_strcasecmp(option, label) == 0)
{
g_free(*text);
*text = quoted_value(value, NULL);
static void read_color_option(FILE *f, gchar *option, gchar *label, gchar *value, GdkColor *color)
{
- if (color && strcasecmp(option, label) == 0)
+ if (color && g_ascii_strcasecmp(option, label) == 0)
{
gchar *colorstr = quoted_value(value, NULL);
if (colorstr) gdk_color_parse(colorstr, color);
static void read_int_option(FILE *f, gchar *option, gchar *label, gchar *value, gint *n)
{
- if (n && strcasecmp(option, label) == 0)
+ if (n && g_ascii_strcasecmp(option, label) == 0)
{
*n = strtol(value, NULL, 10);
}
static void read_uint_option(FILE *f, gchar *option, gchar *label, gchar *value, guint *n)
{
- if (n && strcasecmp(option, label) == 0)
+ if (n && g_ascii_strcasecmp(option, label) == 0)
{
*n = strtoul(value, NULL, 10);
}
static void read_int_option_clamp(FILE *f, gchar *option, gchar *label, gchar *value, gint *n, gint min, gint max)
{
- if (n && strcasecmp(option, label) == 0)
+ if (n && g_ascii_strcasecmp(option, label) == 0)
{
*n = CLAMP(strtol(value, NULL, 10), min, max);
}
static void read_int_unit_option(FILE *f, gchar *option, gchar *label, gchar *value, gint *n, gint subunits)
{
- if (n && strcasecmp(option, label) == 0)
+ if (n && g_ascii_strcasecmp(option, label) == 0)
{
gint l, r;
gchar *ptr;
static void read_bool_option(FILE *f, gchar *option, gchar *label, gchar *value, gint *n)
{
- if (n && strcasecmp(option, label) == 0)
+ if (n && g_ascii_strcasecmp(option, label) == 0)
{
- if (strcasecmp(value, "true") == 0 || strcmp(value, "1") == 0)
+ if (g_ascii_strcasecmp(value, "true") == 0 || strcmp(value, "1") == 0)
*n = TRUE;
else
*n = FALSE;
READ_INT(panels.sort.selection_state);
/* image options */
- if (strcasecmp(option, "image.zoom_mode") == 0)
+ if (g_ascii_strcasecmp(option, "image.zoom_mode") == 0)
{
- if (strcasecmp(value, "original") == 0)
+ if (g_ascii_strcasecmp(value, "original") == 0)
options->image.zoom_mode = ZOOM_RESET_ORIGINAL;
- else if (strcasecmp(value, "fit") == 0)
+ else if (g_ascii_strcasecmp(value, "fit") == 0)
options->image.zoom_mode = ZOOM_RESET_FIT_WINDOW;
- else if (strcasecmp(value, "dont_change") == 0)
+ else if (g_ascii_strcasecmp(value, "dont_change") == 0)
options->image.zoom_mode = ZOOM_RESET_NONE;
}
READ_BOOL(image.zoom_2pass);
READ_BOOL(file_filter.show_dot_directory);
READ_BOOL(file_filter.disable);
- if (strcasecmp(option, "file_filter.ext") == 0)
+ if (g_ascii_strcasecmp(option, "file_filter.ext") == 0)
{
filter_parse(value_all);
}
- if (strcasecmp(option, "sidecar.ext") == 0)
+ if (g_ascii_strcasecmp(option, "sidecar.ext") == 0)
{
sidecar_ext_parse(value_all, TRUE);
}
if (0 == strncasecmp(option, "exif.display.", 13))
{
for (i = 0; ExifUIList[i].key; i++)
- if (0 == strcasecmp(option + 13, ExifUIList[i].key))
+ if (0 == g_ascii_strcasecmp(option + 13, ExifUIList[i].key))
ExifUIList[i].current = strtol(value, NULL, 10);
}
}