r2013 - in trunk/src/target/OM-2007/openmoko-libs: . libmokojournal/src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Fri May 18 16:42:11 CEST 2007


Author: thomas
Date: 2007-05-18 16:42:09 +0200 (Fri, 18 May 2007)
New Revision: 2013

Modified:
   trunk/src/target/OM-2007/openmoko-libs/ChangeLog
   trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c
   trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.c
   trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.h
Log:
Patch by: Neil J Patel <njp at o-hand.com>

* libmokojournal/src/moko-journal.c:
(moko_journal_entry_set_direction):
* libmokojournal/src/moko-time.c: (moko_time_as_timet):
* libmokojournal/src/moko-time.h:
- Removes a g_return_if_fail on a enum.
- Makes the moko_time_as_time_t accept a const MokoTime, to
  suppress warnings.


Modified: trunk/src/target/OM-2007/openmoko-libs/ChangeLog
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/ChangeLog	2007-05-18 14:37:31 UTC (rev 2012)
+++ trunk/src/target/OM-2007/openmoko-libs/ChangeLog	2007-05-18 14:42:09 UTC (rev 2013)
@@ -2,6 +2,18 @@
 
 	Patch by: Neil J Patel <njp at o-hand.com>
 
+	* libmokojournal/src/moko-journal.c:
+	(moko_journal_entry_set_direction):
+	* libmokojournal/src/moko-time.c: (moko_time_as_timet):
+	* libmokojournal/src/moko-time.h:
+	- Removes a g_return_if_fail on a enum.
+	- Makes the moko_time_as_time_t accept a const MokoTime, to
+	  suppress warnings.
+
+2007-05-18  Thomas Wood  <thomas at openedhand.com>
+
+	Patch by: Neil J Patel <njp at o-hand.com>
+
 	* libmokoui/moko-tool-box.c: (_button_release),
 	(moko_tool_box_init): Use a private boolean to store entry visibility
 

Modified: trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c	2007-05-18 14:37:31 UTC (rev 2012)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c	2007-05-18 14:42:09 UTC (rev 2013)
@@ -1656,7 +1656,6 @@
                                        enum MessageDirection direction)
 {
   g_return_if_fail (a_entry) ;
-  g_return_if_fail (direction) ;
 
   a_entry->direction = direction ;
 }

Modified: trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.c	2007-05-18 14:37:31 UTC (rev 2012)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.c	2007-05-18 14:42:09 UTC (rev 2013)
@@ -81,7 +81,7 @@
 }
 
 time_t
-moko_time_as_timet (MokoTime *time)
+moko_time_as_timet (const MokoTime *time)
 {
   g_return_val_if_fail (time, 0) ;
   return icaltime_as_timet (time->t) ;

Modified: trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.h
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.h	2007-05-18 14:37:31 UTC (rev 2012)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-time.h	2007-05-18 14:42:09 UTC (rev 2013)
@@ -29,7 +29,7 @@
 MokoTime* moko_time_from_timet (const time_t t, gboolean is_date) ;
 MokoTime* moko_time_from_string (const gchar *iso_format_date) ;
 void moko_time_free (MokoTime *time) ;
-time_t moko_time_as_timet (MokoTime *time) ;
+time_t moko_time_as_timet (const MokoTime *time) ;
 
 const gchar* moko_time_as_ical_string (MokoTime *t) ;
 #endif /*__MOKO_TIME_H__*/





More information about the commitlog mailing list