Mercurial > pidgin
changeset 19126:ecab1e18f262
Added _get_value
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Fri, 29 Jun 2007 21:28:50 +0000 |
parents | 915ef65d68e3 |
children | f34e11e41122 |
files | finch/gntsound.c finch/libgnt/gntslider.c finch/libgnt/gntslider.h |
diffstat | 3 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntsound.c Fri Jun 29 21:12:03 2007 +0000 +++ b/finch/gntsound.c Fri Jun 29 21:28:50 2007 +0000 @@ -600,6 +600,7 @@ static gboolean save_cb(GntBindable *data, gpointer *win) { + gnt_widget_destroy(GNT_WIDGET(win)); return TRUE; }
--- a/finch/libgnt/gntslider.c Fri Jun 29 21:12:03 2007 +0000 +++ b/finch/libgnt/gntslider.c Fri Jun 29 21:28:50 2007 +0000 @@ -241,6 +241,11 @@ slider_value_changed(slider); } +int gnt_slider_get_value(GntSlider *slider) +{ + return slider->current; +} + int gnt_slider_advance_step(GntSlider *slider, int steps) { slider->current += steps * slider->step;
--- a/finch/libgnt/gntslider.h Fri Jun 29 21:12:03 2007 +0000 +++ b/finch/libgnt/gntslider.h Fri Jun 29 21:28:50 2007 +0000 @@ -127,6 +127,14 @@ void gnt_slider_set_value(GntSlider *slider, int value); /** + * Get the current value for the slider. + * + * @param slider The slider + * + */ +int gnt_slider_get_value(GntSlider *slider); + +/** * Update a label with the value of the slider whenever the value changes. * * @param slider The slider @@ -134,6 +142,7 @@ */ void gnt_slider_reflect_label(GntSlider *slider, GntLabel *label); + G_END_DECLS #endif /* GNT_SLIDER_H */