use g_fopen().

2008-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-libcurl.c: use g_fopen().

	* plug-ins/uri/uri-backend-gvfs.c: formatting.


svn path=/trunk/; revision=26299
This commit is contained in:
Sven Neumann 2008-07-24 14:43:40 +00:00 committed by Sven Neumann
parent 3ed10a56a5
commit 1a2d2422dc
3 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-07-24 Sven Neumann <sven@gimp.org>
* plug-ins/uri/uri-backend-libcurl.c: use g_fopen().
* plug-ins/uri/uri-backend-gvfs.c: formatting.
2008-07-24 Sven Neumann <sven@gimp.org>
* app/paint/gimppaintcore-stroke.c

View file

@ -199,9 +199,11 @@ uri_progress_callback (goffset current_num_bytes,
case DOWNLOAD:
format = _("Downloading image (%s of %s)");
break;
case UPLOAD:
format = _("Uploading image (%s of %s)");
break;
default:
g_assert_not_reached ();
}
@ -223,9 +225,11 @@ uri_progress_callback (goffset current_num_bytes,
case DOWNLOAD:
format = _("Downloaded %s of image data");
break;
case UPLOAD:
format = _("Uploaded %s of image data");
break;
default:
g_assert_not_reached ();
}

View file

@ -21,12 +21,12 @@
#include "config.h"
#include <stdio.h>
#include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
#include <glib/gstdio.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
@ -154,7 +154,7 @@ uri_backend_load_image (const gchar *uri,
gimp_progress_init (_("Connecting to server"));
if ((out_file = fopen(tmpname, "wb")) == NULL)
if ((out_file = g_fopen (tmpname, "wb")) == NULL)
{
g_set_error (error, 0, 0,
_("Could not open output file for writing"));