gnome-control-center r8972 - trunk/capplets/appearance
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8972 - trunk/capplets/appearance
- Date: Thu, 18 Sep 2008 16:33:19 +0000 (UTC)
Author: jensg
Date: Thu Sep 18 16:33:19 2008
New Revision: 8972
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8972&view=rev
Log:
2008-09-18 Jens Granseuer <jensgr gmx net>
* theme-save.c: (write_theme_to_disk): don't fail if the destination
files already exist and the user tries to overwrite them (bug #552671)
Modified:
trunk/capplets/appearance/ChangeLog
trunk/capplets/appearance/theme-save.c
Modified: trunk/capplets/appearance/theme-save.c
==============================================================================
--- trunk/capplets/appearance/theme-save.c (original)
+++ trunk/capplets/appearance/theme-save.c Thu Sep 18 16:33:19 2008
@@ -204,7 +204,7 @@
theme_info->metacity_theme_name,
theme_info->icon_theme_name);
- output = G_OUTPUT_STREAM (g_file_create (tmp_file, G_FILE_CREATE_NONE, NULL, NULL));
+ output = G_OUTPUT_STREAM (g_file_replace (tmp_file, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL));
g_output_stream_write (output, str, strlen (str), NULL, NULL);
g_free (str);
@@ -255,7 +255,7 @@
g_object_unref (client);
}
- g_file_move (tmp_file, target_file, G_FILE_COPY_NONE, NULL, NULL, NULL, NULL);
+ g_file_move (tmp_file, target_file, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, NULL);
g_output_stream_close (output, NULL, NULL);
g_object_unref (tmp_file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]