r1344 - trunk/src/target/OM-2007/applications/openmoko-today/src

dodji at sita.openmoko.org dodji at sita.openmoko.org
Tue Mar 13 17:51:50 CET 2007


Author: dodji
Date: 2007-03-13 17:51:48 +0100 (Tue, 13 Mar 2007)
New Revision: 1344

Modified:
   trunk/src/target/OM-2007/applications/openmoko-today/src/today-main.c
Log:
first attempt at pulling today's event from eds

src/today-main.c: pull all events and quickly show them using the existing infoline widget
tests/ecal-test.c: cooked up some tests to ease ecal functions debugging


Modified: trunk/src/target/OM-2007/applications/openmoko-today/src/today-main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-today/src/today-main.c	2007-03-13 16:51:45 UTC (rev 1343)
+++ trunk/src/target/OM-2007/applications/openmoko-today/src/today-main.c	2007-03-13 16:51:48 UTC (rev 1344)
@@ -97,14 +97,20 @@
     g_return_val_if_fail (timetype, NULL) ;
 
     today = icaltime_today () ;
-    if (!icaltime_compare_date_only (*timetype, today)) {
+    if (!icaltime_compare_date_only (*timetype, today))
+    {
         hour_only = TRUE ;
-    } else {
+    }
+    else
+    {
         date_only = TRUE ;
     }
-    if (hour_only) {
+    if (hour_only)
+    {
         result = g_strdup_printf ("%d:%d", timetype->hour, timetype->minute) ;
-    } else if (date_only) {
+    }
+    else if (date_only)
+    {
         native_tm = icaltimetype_to_tm ((icaltimetype*)timetype) ;
         memset (tmp_str, 0, TMP_STR_LEN+1) ;
         strftime (tmp_str, TMP_STR_LEN, "%d/%b", &native_tm) ;
@@ -308,7 +314,6 @@
 }
 
 GtkWidget *
-get_today_events_infoline ()
 {
   GtkWidget        *infoline  = NULL ;
   GList            *events    = NULL ;





More information about the commitlog mailing list