summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Walton <awalton@gnome.org>2008-07-14 08:16:40 +0000
committerAndrew Walton <awalton@src.gnome.org>2008-07-14 08:16:40 +0000
commitb18740932759391b5cbdd20fe0a05e86b155e6f1 (patch)
tree6261761778c0aded8aa4dd395150cfb6ffdeb5e1
parent5a1ff050d6c1d851e0c0b264ceb5671bac164594 (diff)
downloadnautilus-b18740932759391b5cbdd20fe0a05e86b155e6f1.tar.gz
Use the GLib gstdio functions here, suggested in bug 542819 by Thadeu Lima
2008-07-14 A. Walton <awalton@gnome.org> * libnautilus-private/nautilus-emblem-utils.c (nautilus_emblem_install_custom_emblem), (nautilus_emblem_can_remove_emblem): Use the GLib gstdio functions here, suggested in bug 542819 by Thadeu Lima de Souza Cascardo. svn path=/trunk/; revision=14359
-rw-r--r--ChangeLog8
-rw-r--r--libnautilus-private/nautilus-emblem-utils.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 39d092479..eaff1e6c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-14 A. Walton <awalton@gnome.org>
+
+ * libnautilus-private/nautilus-emblem-utils.c
+ (nautilus_emblem_install_custom_emblem),
+ (nautilus_emblem_can_remove_emblem):
+ Use the GLib gstdio functions here, suggested in bug 542819
+ by Thadeu Lima de Souza Cascardo.
+
2008-07-13 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-file.c:
diff --git a/libnautilus-private/nautilus-emblem-utils.c b/libnautilus-private/nautilus-emblem-utils.c
index 2707281ec..454c7ebb7 100644
--- a/libnautilus-private/nautilus-emblem-utils.c
+++ b/libnautilus-private/nautilus-emblem-utils.c
@@ -307,7 +307,7 @@ nautilus_emblem_install_custom_emblem (GdkPixbuf *pixbuf,
}
/* Touch the toplevel dir */
- if (stat (stat_dir, &stat_buf) == 0) {
+ if (g_stat (stat_dir, &stat_buf) == 0) {
ubuf.actime = stat_buf.st_atime;
ubuf.modtime = time (NULL);
utime (stat_dir, &ubuf);
@@ -328,7 +328,7 @@ nautilus_emblem_can_remove_emblem (const char *keyword)
path = g_strdup_printf ("%s/.icons/hicolor/48x48/emblems/emblem-%s.png",
g_get_home_dir (), keyword);
- if (access (path, F_OK|W_OK) != 0) {
+ if (g_access (path, F_OK|W_OK) != 0) {
ret = FALSE;
}