Changeset 2616


Ignore:
Timestamp:
08/03/07 13:21:43 (6 years ago)
Author:
chris
Message:

Check for existence of ECalComponentId

Location:
trunk/src/target/OM-2007.2/libraries/libmokojournal2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/libraries/libmokojournal2/ChangeLog

    r2559 r2616  
     12007-08-03  Chris Lord,,,  <chris@openedhand.com> 
     2 
     3        * configure.ac: 
     4        * mokojournal/moko-journal.c: (on_entries_removed_cb): 
     5        Check for existence of ECalComponentId 
     6 
    172007-07-29  Holger Freyther  <zecke@selfish.org> 
    28 
  • trunk/src/target/OM-2007.2/libraries/libmokojournal2/configure.ac

    r2558 r2616  
    1515# base deps 
    1616PKG_CHECK_MODULES(DEPS, libecal-1.2 >= $LIBECAL_VERSION) 
     17 
     18# Check for existence of ECalComponentId 
     19old_cflags=$CFLAGS 
     20CFLAGS=$DEPS_CFLAGS 
     21AC_CHECK_TYPE(ECalComponentId, [], [], [#include <libecal/e-cal.h>]) 
     22 
     23if test $ac_cv_type_ECalComponentId = yes; then 
     24        AC_DEFINE(HAVE_ECALCOMPONENTID, 1, [Defined if ECalComponentId exists]) 
     25fi 
     26CFLAGS=$old_cflags 
    1727 
    1828if test x$MOKO_DEVEL = xon ; then 
  • trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.c

    r2536 r2616  
    2525#include <libecal/e-cal.h> 
    2626#include <libecal/e-cal-component.h> 
     27#ifdef HAVE_CONFIG 
     28#  include <config.h> 
     29#endif 
    2730#include "moko-journal.h" 
    2831#include "moko-time-priv.h" 
     
    14501453  for (cur = a_uids ; cur ; cur = cur->next) 
    14511454  { 
    1452     if (cur->data) 
    1453     { 
    1454       if (!moko_journal_remove_entry_by_uid (a_journal, cur->data)) 
    1455       { 
    1456         g_message ("failed to remove entry of uid %s\n", 
    1457                    (const char*)cur->data) ; 
    1458       } 
     1455    const gchar *uid; 
     1456           
     1457#ifdef HAVE_ECALCOMPONENTID 
     1458    ECalComponentId *id = cur->data; 
     1459    uid = id->uid; 
     1460#else 
     1461    uid = cur->data; 
     1462#endif 
     1463 
     1464    if (!moko_journal_remove_entry_by_uid (a_journal, uid)) 
     1465    { 
     1466      g_message ("failed to remove entry of uid %s\n", uid) ; 
    14591467    } 
    14601468  } 
Note: See TracChangeset for help on using the changeset viewer.