- 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:
parent
619ca57c5a
commit
d5aed59bbc
11 changed files with 530 additions and 313 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue