openldev wrote:
Why not just take the total file size and divide it by 100? Move the progress bar every time it downloads that much data. I mean, if the user is downloading a huge file, she isn't going to be expecting the bar to move too quickly.
yeah i am taking total size..
Quote:
float jj=0;
gdouble new_val;
flaot prog_filesize;
jj=100/prog_filesize;
printf("jjjjjjjj %f \n",jj);
new_val = gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (pbar)) + jj;
here file size is 1221948.
and here how can i know estimated time to copy perticular size of a file...
remaining time to copy a file....
gor example i selected a folder of 1Gb
and copied to other file.
here a window will appeared with progressbar...
there is a progress and estimated time to copy...
after copying the 1Gb file the window will closing.
how can i do this all by programatically
thank you in advance