gimp r28169 - in branches/gimp-2-6: . libgimpconfig
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r28169 - in branches/gimp-2-6: . libgimpconfig
- Date: Tue, 17 Mar 2009 11:26:52 +0000 (UTC)
Author: tml
Date: Tue Mar 17 11:26:52 2009
New Revision: 28169
URL: http://svn.gnome.org/viewvc/gimp?rev=28169&view=rev
Log:
2009-03-17 Tor Lillqvist <tml iki fi>
* libgimpconfig/gimpconfigwriter.c
(gimp_config_writer_close_file): Drop Windows code to remove
target file before renaming. g_rename() nowadays takes of allowing
replacing existing files on Windows.
Modified:
branches/gimp-2-6/ChangeLog
branches/gimp-2-6/libgimpconfig/gimpconfigwriter.c
Modified: branches/gimp-2-6/libgimpconfig/gimpconfigwriter.c
==============================================================================
--- branches/gimp-2-6/libgimpconfig/gimpconfigwriter.c (original)
+++ branches/gimp-2-6/libgimpconfig/gimpconfigwriter.c Tue Mar 17 11:26:52 2009
@@ -700,11 +700,6 @@
if (writer->tmpname)
{
-#ifdef G_OS_WIN32
- /* win32 rename can't overwrite */
- g_unlink (writer->filename);
-#endif
-
if (g_rename (writer->tmpname, writer->filename) == -1)
{
g_set_error (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_WRITE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]