comparison src/editors.c @ 1307:e8f21b91885d

Glibification again.
author zas_
date Sat, 21 Feb 2009 20:43:35 +0000
parents 8b89e3ff286b
children fe4da037be21
comparison
equal deleted inserted replaced
1306:c59358ba7ad1 1307:e8f21b91885d
316 while ((dir = readdir(dp)) != NULL) 316 while ((dir = readdir(dp)) != NULL)
317 { 317 {
318 gchar *namel = dir->d_name; 318 gchar *namel = dir->d_name;
319 size_t len = strlen(namel); 319 size_t len = strlen(namel);
320 320
321 if (len > 8 && strncasecmp(namel + len - 8, ".desktop", 8) == 0) 321 if (len > 8 && g_ascii_strncasecmp(namel + len - 8, ".desktop", 8) == 0)
322 { 322 {
323 gchar *name = path_to_utf8(namel); 323 gchar *name = path_to_utf8(namel);
324 gchar *dpath = g_build_filename(path, name, NULL); 324 gchar *dpath = g_build_filename(path, name, NULL);
325 editor_read_desktop_file(dpath); 325 editor_read_desktop_file(dpath);
326 g_free(dpath); 326 g_free(dpath);
592 GList *work2; 592 GList *work2;
593 gchar *ext = work->data; 593 gchar *ext = work->data;
594 work = work->next; 594 work = work->next;
595 595
596 if (strcmp(ext, "*") == 0 || 596 if (strcmp(ext, "*") == 0 ||
597 strcasecmp(ext, fd->extension) == 0) 597 g_ascii_strcasecmp(ext, fd->extension) == 0)
598 { 598 {
599 p = fd->path; 599 p = fd->path;
600 break; 600 break;
601 } 601 }
602 602
604 while (work2) 604 while (work2)
605 { 605 {
606 FileData *sfd = work2->data; 606 FileData *sfd = work2->data;
607 work2 = work2->next; 607 work2 = work2->next;
608 608
609 if (strcasecmp(ext, sfd->extension) == 0) 609 if (g_ascii_strcasecmp(ext, sfd->extension) == 0)
610 { 610 {
611 p = sfd->path; 611 p = sfd->path;
612 break; 612 break;
613 } 613 }
614 } 614 }