Revision: 1403
http://geeqie.svn.sourceforge.net/geeqie/?rev=1403&view=rev
Author: zas_
Date: 2009-02-21 20:43:35 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
Glibification again.
Modified Paths:
--------------
trunk/src/cache_maint.c
trunk/src/editors.c
trunk/src/filedata.c
trunk/src/filefilter.c
trunk/src/format_raw.c
trunk/src/pan-item.c
trunk/src/remote.c
trunk/src/search.c
trunk/src/ui_fileops.c
trunk/src/ui_pathsel.c
Modified: trunk/src/cache_maint.c
===================================================================
--- trunk/src/cache_maint.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/cache_maint.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -182,7 +182,7 @@
while (work)
{
FileData *fd_list = work->data;
- gchar *path_buf = strdup(fd_list->path);
+ gchar *path_buf = g_strdup(fd_list->path);
gchar *dot;
dot = extension_find_dot(path_buf);
Modified: trunk/src/editors.c
===================================================================
--- trunk/src/editors.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/editors.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -318,7 +318,7 @@
gchar *namel = dir->d_name;
size_t len = strlen(namel);
- if (len > 8 && strncasecmp(namel + len - 8, ".desktop", 8) == 0)
+ if (len > 8 && g_ascii_strncasecmp(namel + len - 8, ".desktop",
8) == 0)
{
gchar *name = path_to_utf8(namel);
gchar *dpath = g_build_filename(path, name, NULL);
@@ -594,7 +594,7 @@
work = work->next;
if (strcmp(ext, "*") == 0 ||
- strcasecmp(ext, fd->extension) == 0)
+ g_ascii_strcasecmp(ext, fd->extension) == 0)
{
p = fd->path;
break;
@@ -606,7 +606,7 @@
FileData *sfd = work2->data;
work2 = work2->next;
- if (strcasecmp(ext, sfd->extension) ==
0)
+ if (g_ascii_strcasecmp(ext,
sfd->extension) == 0)
{
p = sfd->path;
break;
Modified: trunk/src/filedata.c
===================================================================
--- trunk/src/filedata.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/filedata.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -395,7 +395,7 @@
work = work->next;
- if (strcasecmp(ext, fd->extension) == 0)
+ if (g_ascii_strcasecmp(ext, fd->extension) == 0)
{
new_fd = fd; /* processing the original file */
}
@@ -687,7 +687,7 @@
{
FileData *sfd = work->data;
work = work->next;
- if (strcasecmp(sfd->extension, ".xmp") == 0)
+ if (g_ascii_strcasecmp(sfd->extension, ".xmp") == 0)
{
sidecar_path = g_strdup(sfd->path);
break;
@@ -728,7 +728,7 @@
gchar *ext = work->data;
work = work->next;
- if (strcasecmp(extension, ext) == 0) return i;
+ if (g_ascii_strcasecmp(extension, ext) == 0) return i;
i++;
}
return 0;
@@ -1880,7 +1880,7 @@
const gchar *dest_ext =
extension_from_path(fd->change->dest);
if (!dest_ext) dest_ext = "";
- if (strcasecmp(fd->extension, dest_ext) != 0)
+ if (g_ascii_strcasecmp(fd->extension, dest_ext) != 0)
{
ret |= CHANGE_WARN_CHANGED_EXT;
DEBUG_1("Change checked: source and destination
have different extensions: %s -> %s", fd->path, fd->change->dest);
Modified: trunk/src/filefilter.c
===================================================================
--- trunk/src/filefilter.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/filefilter.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -285,9 +285,9 @@
ext = g_strndup(b, l);
- if (strcasecmp(ext, "%image") == 0) file_class =
FORMAT_CLASS_IMAGE;
- else if (strcasecmp(ext, "%raw") == 0) file_class =
FORMAT_CLASS_RAWIMAGE;
- else if (strcasecmp(ext, "%meta") == 0) file_class =
FORMAT_CLASS_META;
+ if (g_ascii_strcasecmp(ext, "%image") == 0) file_class =
FORMAT_CLASS_IMAGE;
+ else if (g_ascii_strcasecmp(ext, "%raw") == 0) file_class =
FORMAT_CLASS_RAWIMAGE;
+ else if (g_ascii_strcasecmp(ext, "%meta") == 0) file_class =
FORMAT_CLASS_META;
if (file_class == -1)
{
@@ -383,7 +383,7 @@
if (ln >= lf)
{
/* FIXME: utf8 */
- if (strncasecmp(name + ln - lf, filter, lf) == 0)
return TRUE;
+ if (g_ascii_strncasecmp(name + ln - lf, filter, lf) ==
0) return TRUE;
}
work = work->next;
}
Modified: trunk/src/format_raw.c
===================================================================
--- trunk/src/format_raw.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/format_raw.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -321,7 +321,7 @@
while (!match && format_raw_list[i].magic_pattern)
{
if (format_raw_list[i].extension &&
- strcasecmp(format_raw_list[i].extension, ext) == 0)
+ g_ascii_strcasecmp(format_raw_list[i].extension,
ext) == 0)
{
match = TRUE;
}
Modified: trunk/src/pan-item.c
===================================================================
--- trunk/src/pan-item.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/pan-item.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -762,7 +762,7 @@
}
else if (ignore_case)
{
- if (strcasecmp(path, pi->fd->name) ==
0) match = TRUE;
+ if (g_ascii_strcasecmp(path,
pi->fd->name) == 0) match = TRUE;
}
else
{
Modified: trunk/src/remote.c
===================================================================
--- trunk/src/remote.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/remote.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -429,7 +429,7 @@
{
gdouble n;
- n = strtod(text, NULL);
+ n = g_ascii_strtod(text, NULL);
if (n < SLIDESHOW_MIN_SECONDS || n > SLIDESHOW_MAX_SECONDS)
{
printf_term("Remote slideshow delay out of range (%.1f to
%.1f)\n",
Modified: trunk/src/search.c
===================================================================
--- trunk/src/search.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/search.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -1702,7 +1702,7 @@
}
else
{
- match = (strcasecmp(fd->name, sd->search_name)
== 0);
+ match = (g_ascii_strcasecmp(fd->name,
sd->search_name) == 0);
}
}
else if (sd->match_name == SEARCH_MATCH_CONTAINS)
@@ -1809,7 +1809,7 @@
haystack = list;
while (haystack && !found)
{
- found = (strcasecmp((gchar
*)needle->data,
+ found =
(g_ascii_strcasecmp((gchar *)needle->data,
(gchar
*)haystack->data) == 0);
haystack = haystack->next;
}
@@ -1828,7 +1828,7 @@
haystack = list;
while (haystack && !found)
{
- found = (strcasecmp((gchar
*)needle->data,
+ found =
(g_ascii_strcasecmp((gchar *)needle->data,
(gchar
*)haystack->data) == 0);
haystack = haystack->next;
}
@@ -1847,7 +1847,7 @@
haystack = list;
while (haystack && !found)
{
- found = (strcasecmp((gchar
*)needle->data,
+ found =
(g_ascii_strcasecmp((gchar *)needle->data,
(gchar
*)haystack->data) == 0);
haystack = haystack->next;
}
Modified: trunk/src/ui_fileops.c
===================================================================
--- trunk/src/ui_fileops.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/ui_fileops.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -781,7 +781,7 @@
e = strlen(ext);
/* FIXME: utf8 */
- return (p > e && strncasecmp(path + p - e, ext, e) == 0);
+ return (p > e && g_ascii_strncasecmp(path + p - e, ext, e) == 0);
}
gchar *remove_extension_from_path(const gchar *path)
Modified: trunk/src/ui_pathsel.c
===================================================================
--- trunk/src/ui_pathsel.c 2009-02-21 18:28:53 UTC (rev 1402)
+++ trunk/src/ui_pathsel.c 2009-02-21 20:43:35 UTC (rev 1403)
@@ -136,7 +136,7 @@
if (*f_ptr != '\0' && f_ptr[1] == ' ') f_ptr++; /* skip space
immediately after separator */
f_ptr++;
/* FIXME: utf8 */
- if (l >= i && strncasecmp(file + l - i, strt_ptr, i) == 0)
return TRUE;
+ if (l >= i && g_ascii_strncasecmp(file + l - i, strt_ptr, i) ==
0) return TRUE;
}
return FALSE;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn