Revision: 4641 http://geany.svn.sourceforge.net/geany/?rev=4641&view=rev Author: eht16 Date: 2010-02-06 16:00:11 +0000 (Sat, 06 Feb 2010)
Log Message: ----------- Allow saving remote files using g_file_set_contents() as well (patch by ?\208?\144?\208?\187?\208?\181?\208?\186?\209?\129?\208?\181?\208?\185 ?\208?\144?\208?\189?\209?\130?\208?\184?\208?\191?\208?\190?\208?\178, thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-02-06 10:02:36 UTC (rev 4640) +++ trunk/ChangeLog 2010-02-06 16:00:11 UTC (rev 4641) @@ -1,3 +1,10 @@ +2010-02-06 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/document.c: + Allow saving remote files using g_file_set_contents() as well + (patch by Алексей Антипов, thanks). + + 2010-02-01 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/symbols.c:
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2010-02-06 10:02:36 UTC (rev 4640) +++ trunk/src/document.c 2010-02-06 16:00:11 UTC (rev 4641) @@ -1691,10 +1691,7 @@ g_return_val_if_fail(doc != NULL, g_strdup(g_strerror(EINVAL))); g_return_val_if_fail(data != NULL, g_strdup(g_strerror(EINVAL)));
- /* we never use g_file_set_contents() for remote files as Geany only writes such files - * 'into' the Fuse mountpoint, the file itself is then written by GVfs on the target - * remote filesystem. */ - if (! file_prefs.use_safe_file_saving || doc->priv->is_remote) + if (! file_prefs.use_safe_file_saving) { fp = g_fopen(locale_filename, "wb"); if (G_UNLIKELY(fp == NULL))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.