- Complete the ProgressBar API - Fix the CList example code

Mon Feb 22 08:45:10 GMT 1999 Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml:
          - Complete the ProgressBar API
          - Fix the CList example code

        * examples/clist/clist.c, examples/progressbar/progressbar.c:
           Update from tutorial
This commit is contained in:
GMT 1999 Tony Gale
1999-02-22 08:51:02 +00:00
committed by Tony Gale
parent 619ca57c5a
commit d5aed59bbc
11 changed files with 530 additions and 313 deletions

View File

@ -15,11 +15,12 @@ gint progress_timeout( gpointer data )
gfloat new_val;
GtkAdjustment *adj;
adj = GTK_PROGRESS (data)->adjustment;
/* Calculate the value of the progress bar using the
* value range set in the adjustment object */
new_val = adj->value + 1;
new_val = gtk_progress_get_value( GTK_PROGRESS(data) ) + 1;
adj = GTK_PROGRESS (data)->adjustment;
if (new_val > adj->upper)
new_val = adj->lower;