gtk+ r20238 - in trunk: . gtk
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20238 - in trunk: . gtk
- Date: Thu, 29 May 2008 18:22:38 +0000 (UTC)
Author: tml
Date: Thu May 29 18:22:38 2008
New Revision: 20238
URL: http://svn.gnome.org/viewvc/gtk+?rev=20238&view=rev
Log:
2008-05-29 Tor Lillqvist <tml novell com>
Bug 535526 - updateiconcache.c: using open/close without prototype
* gtk/updateiconcache.c: Include <io.h> if _MSC_VER. Also, use
g_utime() instead of utime() for UTF-8 pathname support on Windows
when available.
Modified:
trunk/ChangeLog
trunk/gtk/updateiconcache.c
Modified: trunk/gtk/updateiconcache.c
==============================================================================
--- trunk/gtk/updateiconcache.c (original)
+++ trunk/gtk/updateiconcache.c Thu May 29 18:22:38 2008
@@ -31,6 +31,7 @@
#endif
#include <errno.h>
#ifdef _MSC_VER
+#include <io.h>
#include <sys/utime.h>
#else
#include <utime.h>
@@ -1547,8 +1548,12 @@
utime_buf.actime = path_stat.st_atime;
utime_buf.modtime = cache_stat.st_mtime;
+#if GLIB_CHECK_VERSION (2, 17, 1)
+ g_utime (path, &utime_buf);
+#else
utime (path, &utime_buf);
-
+#endif
+
if (!quiet)
g_printerr (_("Cache file created successfully.\n"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]