Progress not progressing ...
- From: Bruno Mairlot <bruno virgoplus com>
- To: gtk-list redhat com
- Subject: Progress not progressing ...
- Date: Tue, 06 Jul 1999 03:13:41 +0200
Hello,
To quote the Online Doc :
Progress bars are used to show the status of an operation.
Ok, my operation is to analyse deeply a table in MySQL.
So I intended to update the progress bar each time an operation was done
.
The structure is something like this :
gfloat percentage=0.0;
for(i=0;i<fourn_num;i++){
query=g_strdup_query("select .....");
"then send the query ...."
"operate on the result of the query"
then :
percentage=(gfloat)((i+1)/fourn_num);
gtk_progress_bar_update(GTK_PROGRESS_BAR(progress),percentage);
}
But the progress bar is only update at once ! It seems that the update
is done at the end of the for loop, and then making the use of the
progress bar useless.
I was using 1.2.2 and decide to update to 1.2.3, but nothing changed.
So I thought : "there is something I'm writing wrongly"
and obviously my question is : What ?
Thank you
Bruno
--
First they ignore you...Second they laugh at you...
Then they fight you......And then you win!
(Ghandi)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]