diff options
author | GMT 1999 Tony Gale <gale@gtk.org> | 1999-02-22 08:51:02 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 1999-02-22 08:51:02 +0000 |
commit | d5aed59bbcefe89a34da745a0f7e2abe7bcdcae6 (patch) | |
tree | ed6a2996d992e51f27831d4dc242c244a99d4c60 /examples/progressbar | |
parent | 619ca57c5a58f7ec143c61880daa6ea33144df91 (diff) | |
download | gtk+-d5aed59bbcefe89a34da745a0f7e2abe7bcdcae6.tar.gz |
- 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
Diffstat (limited to 'examples/progressbar')
-rw-r--r-- | examples/progressbar/progressbar.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/progressbar/progressbar.c b/examples/progressbar/progressbar.c index efb20cc597..073e74fa7b 100644 --- a/examples/progressbar/progressbar.c +++ b/examples/progressbar/progressbar.c @@ -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; |