summaryrefslogtreecommitdiff
path: root/examples/progressbar
diff options
context:
space:
mode:
authorGMT 1999 Tony Gale <gale@gtk.org>1999-02-22 08:51:02 +0000
committerTony Gale <gale@src.gnome.org>1999-02-22 08:51:02 +0000
commitd5aed59bbcefe89a34da745a0f7e2abe7bcdcae6 (patch)
treeed6a2996d992e51f27831d4dc242c244a99d4c60 /examples/progressbar
parent619ca57c5a58f7ec143c61880daa6ea33144df91 (diff)
downloadgdk-pixbuf-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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/progressbar/progressbar.c b/examples/progressbar/progressbar.c
index efb20cc59..073e74fa7 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;