if (dir)
{
- while (name = g_dir_read_name (dir))
+ while ((name = g_dir_read_name (dir)) != NULL)
{
old_full_name = g_build_filename (old_dir_name, name, NULL);
new_full_name = g_build_filename (new_dir_name, name, NULL);
if (extension == NULL) {
new_filename = g_strconcat (orig_filename, ".glabels", NULL);
} else {
- if (g_strcasecmp (extension, ".glabels") != 0) {
+ if (g_ascii_strcasecmp (extension, ".glabels") != 0) {
new_filename =
g_strconcat (orig_filename, ".glabels", NULL);
} else {
extension = strrchr (new_filename, '.');
if (extension != NULL) {
- if (g_strcasecmp (extension, ".glabels") == 0) {
+ if (g_ascii_strcasecmp (extension, ".glabels") == 0) {
*extension = 0; /* truncate string, rm extension */
}
}
for (p=backends; p!=NULL; p=p->next) {
backend = (Backend *)p->data;
- if (g_strcasecmp(name, backend->name) == 0) {
+ if (g_ascii_strcasecmp(name, backend->name) == 0) {
merge = GL_MERGE (g_object_newv (backend->type,
backend->n_params,
}
}
- if ( (merge == NULL) && (g_strcasecmp (name, "None") != 0)) {
+ if ( (merge == NULL) && (g_ascii_strcasecmp (name, "None") != 0)) {
g_message ("Unknown merge backend \"%s\"", name);
}
gl_str_util_string_to_align (const gchar *string)
{
- if (g_strcasecmp (string, "Left") == 0) {
+ if (g_ascii_strcasecmp (string, "Left") == 0) {
return PANGO_ALIGN_LEFT;
- } else if (g_strcasecmp (string, "Center") == 0) {
+ } else if (g_ascii_strcasecmp (string, "Center") == 0) {
return PANGO_ALIGN_CENTER;
- } else if (g_strcasecmp (string, "Right") == 0) {
+ } else if (g_ascii_strcasecmp (string, "Right") == 0) {
return PANGO_ALIGN_RIGHT;
} else {
return PANGO_ALIGN_LEFT;
gl_str_util_string_to_weight (const gchar *string)
{
- if (g_strcasecmp (string, "Regular") == 0) {
+ if (g_ascii_strcasecmp (string, "Regular") == 0) {
return PANGO_WEIGHT_NORMAL;
- } else if (g_strcasecmp (string, "Bold") == 0) {
+ } else if (g_ascii_strcasecmp (string, "Bold") == 0) {
return PANGO_WEIGHT_BOLD;
} else {
return PANGO_WEIGHT_NORMAL;