[tasks/gnome3: 11/14] Remove ECalComponentId check



commit 4ae6b0ea440a901321f437161093186b5910b28e
Author: Ross Burton <ross linux intel com>
Date:   Wed Apr 27 19:39:40 2011 +0100

    Remove ECalComponentId check

 configure.ac              |    4 ----
 libkoto/koto-task-store.c |    7 ++-----
 2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5961516..9d7a49b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,10 +72,6 @@ CFLAGS=$GTK_CFLAGS
 AC_CHECK_DECLS([GDK_WINDOW_TYPE_HINT_COMBO, gtk_style_lookup_color],
                [], [], [#include <gtk/gtk.h>])
 
-# This was introduced in newer libecal
-CFLAGS=$ECAL_CFLAGS
-AC_CHECK_TYPES(ECalComponentId, [], [], [#include <libecal/e-cal.h>])
-
 CFLAGS=$old_cflags
 
 AC_OUTPUT([
diff --git a/libkoto/koto-task-store.c b/libkoto/koto-task-store.c
index 88f0361..5ba79af 100644
--- a/libkoto/koto-task-store.c
+++ b/libkoto/koto-task-store.c
@@ -236,15 +236,12 @@ on_objects_removed (ECalView *view, GList *uids, KotoTaskStore *store) {
   for (; uids; uids = g_list_next (uids)) {
     GtkTreeIter *iter;
     const char *uid;
-#if HAVE_ECALCOMPONENTID
     ECalComponentId *id = uids->data;
     /* TODO: check uid/rid to handle recurrant tasks? */
-    uid = id->uid;
-#else
-    uid = uids->data;
-#endif
 
+    uid = id->uid;
     iter = g_hash_table_lookup (priv->uid_hash, uid);
+
     if (iter) {
       gtk_list_store_remove (GTK_LIST_STORE (store), iter);
       g_hash_table_remove (priv->uid_hash, uid);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]