diff options
author | Tim Janik <timj@src.gnome.org> | 1998-01-30 23:47:09 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-01-30 23:47:09 +0000 |
commit | 4af33fa24df69f335f07f43e5904a766c8d8ec97 (patch) | |
tree | ccc23ba16332f44ae45418f6cf9580036c4c76da /gtk/gtkadjustment.c | |
parent | ee7038f9fddd0213c65474e5d59609107caed7c6 (diff) | |
download | gtk+-4af33fa24df69f335f07f43e5904a766c8d8ec97.tar.gz |
hm, initital refcount revolution commit ;)
still some gnits left, but keep working on it ;)
-timj
Diffstat (limited to 'gtk/gtkadjustment.c')
-rw-r--r-- | gtk/gtkadjustment.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c index 47d422bc5d..eceebdfa61 100644 --- a/gtk/gtkadjustment.c +++ b/gtk/gtkadjustment.c @@ -117,3 +117,15 @@ gtk_adjustment_new (gfloat value, return GTK_OBJECT (adjustment); } + +void +gtk_adjustment_set_value (GtkAdjustment *adjustment, + gfloat value) +{ + g_return_if_fail (adjustment != NULL); + g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment)); + + adjustment->value = CLAMP (value, adjustment->lower, adjustment->upper); + + gtk_signal_emit_by_name (GTK_OBJECT (adjustment), "value_changed"); +} |