Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_spinner.c ewl_spinner.h
Log Message:
add ewl_spinner_digits_get()
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_spinner.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_spinner.c 16 Aug 2006 16:00:31 -0000 1.20
+++ ewl_spinner.c 17 Aug 2006 10:40:34 -0000 1.21
@@ -156,6 +156,21 @@
}
/**
+ * @param s: The spinnner to get the number of digits displayed
+ * @return Returns the number of digits displayed by the spinner
+ * @brief This will retrieve the number of digits displayed by the spinner
+ */
+unsigned char
+ewl_spinner_digits_get(Ewl_Spinner *s)
+{
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR_RET("s", s, 0);
+ DCHECK_TYPE_RET("s", s, EWL_SPINNER_TYPE, 0);
+
+ DRETURN_INT(s->digits, DLEVEL_STABLE);
+}
+
+/**
* @internal
* @param w: The widget to work with
* @param ev_data: UNUSED
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_spinner.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- ewl_spinner.h 16 Aug 2006 16:00:31 -0000 1.12
+++ ewl_spinner.h 17 Aug 2006 10:40:34 -0000 1.13
@@ -39,7 +39,7 @@
struct Ewl_Spinner
{
Ewl_Range range; /**< Inherit from Ewl_Range */
- int digits; /**< Number of digits displayed after decimal */
+ unsigned char digits; /**< Number of digits displayed after decimal */
Ewl_Widget *entry; /**< The Ewl_Entry displaying value */
Ewl_Widget *vbox; /**< Ewl_Box to hold the buttons */
Ewl_Widget *increment; /**< Ewl_Button to add value */
@@ -52,7 +52,9 @@
Ewl_Widget *ewl_spinner_new(void);
int ewl_spinner_init(Ewl_Spinner *s);
+
void ewl_spinner_digits_set(Ewl_Spinner *s, unsigned char digits);
+unsigned char ewl_spinner_digits_get(Ewl_Spinner *s);
/*
* Internally used callbacks, override at your own risk.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs