X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgnome-trans-applet%2Fdolcon-trans-applet.c;h=55207766e0f1d44bb5733f424e1228f54df6bee7;hb=ac3c36760b8f34c441e5dc143c977cee1298b139;hp=6b4a6e9fd0aae2ca74085b3fe0eb1742ba83d2c1;hpb=8cb2d75b84ddff61bd0e56eb1943931194cf8045;p=doldaconnect.git diff --git a/clients/gnome-trans-applet/dolcon-trans-applet.c b/clients/gnome-trans-applet/dolcon-trans-applet.c index 6b4a6e9..5520776 100644 --- a/clients/gnome-trans-applet/dolcon-trans-applet.c +++ b/clients/gnome-trans-applet/dolcon-trans-applet.c @@ -91,7 +91,12 @@ static gboolean updatetip(struct appletdata *data) strcpy(buf, _("Time left: Infinite (Transfer is standing still)")); } else { left = (data->curdisplay->size - data->curdisplay->pos) / speed; - sprintf(buf, _("Time left: %i:%02i"), left / 3600, (left / 60) % 60); + if(left >= 86400) + sprintf(buf, _("Time left: %id%02ih%02im"), left / 86400, (left / 3600) % 24, (left / 60) % 60); + else if(left >= 3600) + sprintf(buf, _("Time left: %ih%02im"), left / 3600, (left / 60) % 60); + else + sprintf(buf, _("Time left: %im"), left / 60); } } gtk_tooltips_set_tip(data->tips, GTK_WIDGET(data->applet), buf, NULL);