Re: GtkProgressBar



set your value at 0 when you make the progress_bar

gtk_prorgress_set_value(GTK_PROGRESS(bar), 0);

then in your timeout

        gfloat val;              
        val = gtk_progress_get_value(GTK_PROGRESS(bar)) + 1;
        gtk_progress_set_value(GTK_PROGRESS(bar), val);

so that the value is incremented and it'd actually move. Now it being grey
instead of blue depends on your theme I suppose.

Maher




On Thu, 28 Sep 2000 18:07:17 +0200, Jose Eusebio Roza Pando said:

Hi,
   I am doing a progressbar in activity mode (like Kit's car), but my bar
 does not move and it is grey not blue.
   Do I need  a timeout (i use a timeout) ?
  Thanks.
 
 Eusebio
 
 
 _______________________________________________
 gtk-app-devel-list mailing list
 gtk-app-devel-list gnome org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 

-- 
muhri muhri net -- http://www.muhri.net






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]