X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgnome-trans-applet%2Fdolcon-trans-applet.c;h=e909d0c4769cc6ec9372b7f90d02986e1bef6e9e;hb=24b67b52955f9fe26daad3abf08eb5305a488951;hp=9310a22e5319fa85b927299b9de69acd7759b1d4;hpb=90db45493f9b00da35ecb23b2c166b890170952c;p=doldaconnect.git diff --git a/clients/gnome-trans-applet/dolcon-trans-applet.c b/clients/gnome-trans-applet/dolcon-trans-applet.c index 9310a22..e909d0c 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);