Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_calendar.c ewl_calendar.h
Log Message:
Date accessor functions for ewl_calendar
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_calendar.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_calendar.c 11 Jul 2005 01:33:59 -0000 1.4
+++ ewl_calendar.c 11 Jul 2005 11:52:06 -0000 1.5
@@ -32,6 +32,7 @@
struct tm* now;
time_t now_tm;
int i;
+ Ewl_Widget* it;
now_tm = time(NULL);
@@ -40,8 +41,6 @@
ewl_container_child_iterate_begin(EWL_CONTAINER(EWL_CALENDAR(user_data)->grid));
-
- Ewl_Widget* it;
while ( (it =
ewl_container_child_next(EWL_CONTAINER(EWL_CALENDAR(user_data)->grid))) != NULL
) {
ewl_widget_color_set(EWL_WIDGET(it), 255,255,255,255);
ewl_calendar_highlight_today(now, EWL_LABEL(it),
EWL_CALENDAR(user_data));
@@ -131,6 +130,18 @@
}
+int ewl_calendar_day_get(Ewl_Calendar* c) {
+ return c->cur_day;
+}
+
+int ewl_calendar_month_get(Ewl_Calendar* c) {
+ return c->cur_month;
+}
+
+int ewl_calendar_year_get(Ewl_Calendar* c) {
+ return c->cur_year;
+}
+
void ewl_calendar_grid_setup(Ewl_Calendar* cal) {
struct tm* month_start;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_calendar.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_calendar.h 10 Jul 2005 08:26:37 -0000 1.2
+++ ewl_calendar.h 11 Jul 2005 11:52:06 -0000 1.3
@@ -47,6 +47,9 @@
int ewl_calendar_init(Ewl_Calendar* calendar);
void ewl_calendar_grid_setup(Ewl_Calendar* cal);
void ewl_calendar_ascii_time_get(Ewl_Calendar* cal, char* str);
+int ewl_calendar_day_get(Ewl_Calendar*);
+int ewl_calendar_month_get(Ewl_Calendar*);
+int ewl_calendar_year_get(Ewl_Calendar*);
#endif
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs