[Goodies-commits] r7038 - in xfce4-screenshooter/trunk: . lib
Jerome Guelfucci
jeromeg at xfce.org
Mon Mar 30 09:12:39 CEST 2009
Author: jeromeg
Date: 2009-03-30 07:12:39 +0000 (Mon, 30 Mar 2009)
New Revision: 7038
Modified:
xfce4-screenshooter/trunk/ChangeLog
xfce4-screenshooter/trunk/lib/screenshooter-dialogs.c
Log:
Improve the upload progress bar.
Modified: xfce4-screenshooter/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter/trunk/ChangeLog 2009-03-30 06:41:28 UTC (rev 7037)
+++ xfce4-screenshooter/trunk/ChangeLog 2009-03-30 07:12:39 UTC (rev 7038)
@@ -1,3 +1,9 @@
+2009-03-30 jeromeg
+
+ * lib/screenshooter-dialogs.c (cb_progress_upload):
+ - show the number of transferred Kb and the number of total
+ Kb instead of displaying the number of remaining bytes.
+
2009-03-27 jeromeg
* lib/screenshooter-dialogs.c:
Modified: xfce4-screenshooter/trunk/lib/screenshooter-dialogs.c
===================================================================
--- xfce4-screenshooter/trunk/lib/screenshooter-dialogs.c 2009-03-30 06:41:28 UTC (rev 7037)
+++ xfce4-screenshooter/trunk/lib/screenshooter-dialogs.c 2009-03-30 07:12:39 UTC (rev 7038)
@@ -493,9 +493,10 @@
{
gdouble fraction = (double) current_num_bytes / (double) total_num_bytes;
- gint remaining = (int) total_num_bytes - (int) current_num_bytes;
+ gfloat current = (float) current_num_bytes / 1000;
+ gfloat total = (float) total_num_bytes / 1000;
- gchar *bar_text = g_strdup_printf (_("%i bytes remaining"), remaining);
+ gchar *bar_text = g_strdup_printf (_("%.2fKb of %.2fKb"), current, total);
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (user_data), fraction);
More information about the Goodies-commits
mailing list