nautilus r14359 - in trunk: . libnautilus-private



Author: awalton
Date: Mon Jul 14 08:16:40 2008
New Revision: 14359
URL: http://svn.gnome.org/viewvc/nautilus?rev=14359&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/libnautilus-private/nautilus-emblem-utils.c

Modified: trunk/libnautilus-private/nautilus-emblem-utils.c
==============================================================================
--- trunk/libnautilus-private/nautilus-emblem-utils.c	(original)
+++ trunk/libnautilus-private/nautilus-emblem-utils.c	Mon Jul 14 08:16:40 2008
@@ -307,7 +307,7 @@
 	}
 
 	/* 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 @@
 	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;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]