Enlightenment CVS committal
Author : englebass
Project : e_modules
Module : calendar
Dir : e_modules/calendar
Modified Files:
e_mod_main.c
Log Message:
Formatting.
Simpler way of creating empty string
===================================================================
RCS file: /cvs/e/e_modules/calendar/e_mod_main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_main.c 12 Nov 2007 08:07:17 -0000 1.8
+++ e_mod_main.c 12 Nov 2007 08:09:31 -0000 1.9
@@ -237,7 +237,7 @@
of = e_widget_frametable_add(evas, buf, 0);
/* column titles */
- for (col=0; col<=6; col++)
+ for (col = 0; col <= 6; col++)
{
switch (col)
{
@@ -253,17 +253,17 @@
}
/* output days */
- day=0;
- for (row=1; row<=6; row++)
+ day = 0;
+ for (row = 1; row <= 6; row++)
{
- for (col=0; col<=6; col++)
+ for (col = 0; col <= 6; col++)
{
- if (!day) if (col == startwd) day=1;
+ if (!day) if (col == startwd) day = 1;
if (day && (day <= maxdays))
snprintf(buf, sizeof(buf), "%02d", day++);
else
- snprintf(buf, sizeof(buf), "");
+ buf[0] = 0;
ob = e_widget_label_add(evas, buf);
// if (day == today) // FIXME: highlight needed
e_widget_frametable_object_append(of, ob, col, row, 1, 1, 1, 0, 0,
0);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs