diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-08-12 01:49:53 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-08-12 01:49:53 +0800 |
commit | bba515a79c91c90e413403d1f03251cf0ed33457 (patch) | |
tree | 8ec92963b99bf69a1874280cfbaf003908442350 /calendar/gui | |
parent | 1fa80ef1b7e6de2c0653b68f60986ae4150d2780 (diff) | |
download | gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar.gz gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar.zst gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.zip |
Handle the PERCENT-COMPLETE property. (free_icalcomponent): Likewise.
2000-08-11 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_property): Handle the
PERCENT-COMPLETE property.
(free_icalcomponent): Likewise.
(cal_component_get_percent): Likewise.
(cal_component_set_percent): Likewise.
(cal_component_free_percent): Likewise.
(scan_property): Handle the PRIORITY property.
(free_icalcomponent): Likewise.
(cal_component_get_priority): Likewise.
(cal_component_set_priority): Likewise.
(cal_component_free_priority): Likewise.
* cal-util/cal-component.h (CalComponentField): New enumeration
with the list of fields we support for ETable.
svn path=/trunk/; revision=4745
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/calendar-component.c | 4 | ||||
-rw-r--r-- | calendar/gui/calendar-model.c | 21 | ||||
-rw-r--r-- | calendar/gui/calendar-model.h | 2 | ||||
-rw-r--r-- | calendar/gui/component-factory.c | 4 | ||||
-rw-r--r-- | calendar/gui/control-factory.c | 4 |
5 files changed, 13 insertions, 22 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 4c546600a2..8644b8928c 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -21,16 +21,14 @@ * Author: Ettore Perazzoli */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif - #include <bonobo.h> #include "evolution-shell-component.h" #include "component-factory.h" #include "control-factory.h" + #ifdef USING_OAF #define COMPONENT_FACTORY_ID "OAFIID:evolution-shell-component-factory:evolution-calendar:cba77062-1466-4aac-8ce7-b019eaf2e921" #else diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index 5755e20d81..beb1c5f78e 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -149,7 +149,7 @@ calendar_model_init (CalendarModel *model) priv = g_new0 (CalendarModelPrivate, 1); model->priv = priv; - priv->objects = g_array_new (FALSE, TRUE, sizeof (iCalObject *)); + priv->objects = g_array_new (FALSE, TRUE, sizeof (CalComponent *)); priv->uid_index_hash = g_hash_table_new (g_str_hash, g_str_equal); } @@ -179,11 +179,11 @@ free_objects (CalendarModel *model) g_hash_table_foreach_remove (priv->uid_index_hash, free_uid_index, NULL); for (i = 0; i < priv->objects->len; i++) { - iCalObject *ico; + CalComponent *comp; - ico = g_array_index (priv->objects, iCalObject *, i); - g_assert (ico != NULL); - ical_object_unref (ico); + comp = g_array_index (priv->objects, CalComponent *, i); + g_assert (comp != NULL); + gtk_object_unref (GTK_OBJECT (comp)); } g_array_set_size (priv->objects, 0); @@ -295,7 +295,7 @@ calendar_model_value_at (ETableModel *etm, int col, int row) { CalendarModel *model; CalendarModelPrivate *priv; - iCalObject *ico; + CalComponent *comp; static char buffer[16]; model = CALENDAR_MODEL (etm); @@ -304,8 +304,8 @@ calendar_model_value_at (ETableModel *etm, int col, int row) g_return_val_if_fail (col >= 0 && col < ICAL_OBJECT_FIELD_NUM_FIELDS, NULL); g_return_val_if_fail (row >= 0 && row < priv->objects->len, NULL); - ico = g_array_index (priv->objects, iCalObject *, row); - g_assert (ico != NULL); + comp = g_array_index (priv->objects, CalComponent *, row); + g_assert (comp != NULL); switch (col) { case ICAL_OBJECT_FIELD_COMMENT: @@ -1527,7 +1527,7 @@ calendar_model_mark_task_complete (CalendarModel *model, /* Frees the objects stored in the calendar model */ -iCalObject* +CalComponent * calendar_model_get_cal_object (CalendarModel *model, gint row) { @@ -1535,6 +1535,5 @@ calendar_model_get_cal_object (CalendarModel *model, priv = model->priv; - return g_array_index (priv->objects, iCalObject *, row); + return g_array_index (priv->objects, CalComponent *, row); } - diff --git a/calendar/gui/calendar-model.h b/calendar/gui/calendar-model.h index d3317b11eb..d1481a4ece 100644 --- a/calendar/gui/calendar-model.h +++ b/calendar/gui/calendar-model.h @@ -65,7 +65,7 @@ void calendar_model_mark_task_complete (CalendarModel *model, void calendar_model_delete_task (CalendarModel *model, gint row); -iCalObject* calendar_model_get_cal_object (CalendarModel *model, +CalComponent* calendar_model_get_cal_object (CalendarModel *model, gint row); diff --git a/calendar/gui/component-factory.c b/calendar/gui/component-factory.c index 4c546600a2..8644b8928c 100644 --- a/calendar/gui/component-factory.c +++ b/calendar/gui/component-factory.c @@ -21,16 +21,14 @@ * Author: Ettore Perazzoli */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif - #include <bonobo.h> #include "evolution-shell-component.h" #include "component-factory.h" #include "control-factory.h" + #ifdef USING_OAF #define COMPONENT_FACTORY_ID "OAFIID:evolution-shell-component-factory:evolution-calendar:cba77062-1466-4aac-8ce7-b019eaf2e921" #else diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c index bbfe796ce7..d7626d21f3 100644 --- a/calendar/gui/control-factory.c +++ b/calendar/gui/control-factory.c @@ -21,10 +21,6 @@ * Author: Ettore Perazzoli */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <config.h> #include <gnome.h> #include <glade/glade.h> |