jana r747 - in trunk: . libjana-ecal
- From: rbradford svn gnome org
- To: svn-commits-list gnome org
- Subject: jana r747 - in trunk: . libjana-ecal
- Date: Thu, 19 Mar 2009 17:30:25 +0000 (UTC)
Author: rbradford
Date: Thu Mar 19 17:30:25 2009
New Revision: 747
URL: http://svn.gnome.org/viewvc/jana?rev=747&view=rev
Log:
2009-03-19 Rob Bradford <rob linux intel com>
* libjana-ecal/jana-ecal-store.c (get_jana_ecal_comp):
Teach the ecal store about JanaEcalTask.
Modified:
trunk/ChangeLog
trunk/libjana-ecal/jana-ecal-store.c
Modified: trunk/libjana-ecal/jana-ecal-store.c
==============================================================================
--- trunk/libjana-ecal/jana-ecal-store.c (original)
+++ trunk/libjana-ecal/jana-ecal-store.c Thu Mar 19 17:30:25 2009
@@ -36,6 +36,7 @@
#include "jana-ecal-component.h"
#include "jana-ecal-event.h"
#include "jana-ecal-note.h"
+#include "jana-ecal-task.h"
#include "jana-ecal-store-view.h"
#include "jana-ecal-store.h"
@@ -410,8 +411,20 @@
return JANA_ECAL_COMPONENT (note);
break;
}
- case JANA_COMPONENT_TASK :
- /* TODO: Implement tasks */
+ case JANA_COMPONENT_TASK : {
+ JanaEcalTask *task;
+ if (!JANA_ECAL_IS_TASK (comp)) {
+ task = JANA_ECAL_TASK (
+ jana_utils_task_copy (JANA_TASK (comp),
+ jana_ecal_task_new ()));
+ } else {
+ task = g_object_ref (JANA_ECAL_TASK (
+ g_object_ref (comp)));
+ }
+
+ return JANA_ECAL_COMPONENT (task);
+ break;
+ }
default :
g_warning ("%s called with invalid component type", G_STRFUNC);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]