Commit 8ef2823a authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

Finish porting to new progress API (and make it build).

2005-09-29  Manish Singh  <yosh@gimp.org>

        * plug-ins/uri/uri-backend-wget.c: Finish porting to new progress
        API (and make it build).

        * plug-ins/uri/uri-backend-gnomevfs.c: Convert a g_strdup_printf
        gimp_progress_set_text pair to gimp_progress_set_text_printf.
parent f3bfb29a
2005-09-29 Manish Singh <yosh@gimp.org>
* plug-ins/uri/uri-backend-wget.c: Finish porting to new progress
API (and make it build).
* plug-ins/uri/uri-backend-gnomevfs.c: Convert a g_strdup_printf
gimp_progress_set_text pair to gimp_progress_set_text_printf.
2005-09-30 Sven Neumann <sven@gimp.org>
* app/actions/dialogs-actions.c
......
......@@ -187,7 +187,6 @@ copy_uri (const gchar *src_uri,
guchar buffer[BUFSIZE];
GnomeVFSResult result;
gchar *memsize;
gchar *message;
GTimeVal last_time = { 0, 0 };
gimp_progress_init (_("Connecting to server..."));
......@@ -281,13 +280,11 @@ copy_uri (const gchar *src_uri,
else
{
memsize = gimp_memsize_to_string (bytes_read);
message = g_strdup_printf (copied_format_str, memsize);
g_free (memsize);
gimp_progress_set_text (message);
gimp_progress_set_text_printf (copied_format_str, memsize);
gimp_progress_pulse ();
g_free (message);
g_free (memsize);
}
last_time = now;
......
......@@ -191,7 +191,7 @@ uri_backend_load_image (const gchar *uri,
/* The fourth line is either the network request or an error */
gimp_progress_set_text ("%s %s", _("Opening URI..."), timeout_msg);
gimp_progress_set_text_printf ("%s %s", _("Opening URI..."), timeout_msg);
if (fgets (buf, sizeof (buf), input) == NULL)
{
......@@ -284,7 +284,7 @@ uri_backend_load_image (const gchar *uri,
memsize = NULL;
}
gimp_progress_set_text ("%s %s", message, timeout_msg);
gimp_progress_set_text_printf ("%s %s", message, timeout_msg);
g_free (message);
g_free (memsize);
......@@ -316,14 +316,12 @@ uri_backend_load_image (const gchar *uri,
else
{
memsize = gimp_memsize_to_string (kilobytes * 1024);
message = g_strdup_printf (_("Downloaded %s of image data"),
memsize);
g_free (memsize);
gimp_progress_set_text (message);
gimp_progress_set_text_printf
(_("Downloaded %s of image data"), memsize);
gimp_progress_pulse ();
g_free (message);
g_free (memsize);
}
}
else if (dot == ':') /* the time string contains a ':' */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment