changeset 18515:3b19fa8d0177

Add _get_value for slider. applied changes from 5a09eb6f2b9f91b05db469ec98b87f8327f3edbc through 2f66c96282cef40ad02d5a635458f127bb7086f2
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 13 Jul 2007 11:30:08 +0000
parents ad12ae61bb2c
children 15f0c935e699
files finch/libgnt/gntslider.c finch/libgnt/gntslider.h
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntslider.c	Fri Jul 13 10:51:25 2007 +0000
+++ b/finch/libgnt/gntslider.c	Fri Jul 13 11:30:08 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 Jul 13 10:51:25 2007 +0000
+++ b/finch/libgnt/gntslider.h	Fri Jul 13 11:30:08 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 */