Index: applets/clock/clock.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/applets/clock/clock.c,v
retrieving revision 1.151
diff -u -r1.151 clock.c
--- applets/clock/clock.c	27 Sep 2004 16:17:18 -0000	1.151
+++ applets/clock/clock.c	13 Oct 2004 18:34:49 -0000
@@ -708,7 +708,7 @@
         GtkTreeIter  iter;
         char        *uid;
         int          percent_complete;
-        char        *error = NULL;
+        char        *error = NULL, *text_copy;
 
         path       = gtk_tree_path_new_from_string (path_str);
         child_path = gtk_tree_model_filter_convert_path_to_child_path (cd->tasks_filter, path);
@@ -717,7 +717,10 @@
                             TASK_COLUMN_UID, &uid,
                             -1);
 
-        percent_complete = (int) g_strtod (text, &error);
+        text_copy = g_strdup (text);
+        text_copy = g_strdelimit (text_copy, "% ", ' ');
+        text_copy = g_strchomp (text_copy);
+        percent_complete = (int) g_strtod (text_copy, &error);
         if (!error || !error [0]) {
                 gboolean task_completed;
 
@@ -731,6 +734,7 @@
         }
 
         g_free (uid);
+        g_free (text_copy);
         gtk_tree_path_free (path);
         gtk_tree_path_free (child_path);
 }
