diff options
Diffstat (limited to 'calendar/cal-util')
-rw-r--r-- | calendar/cal-util/cal-component.c | 4 | ||||
-rw-r--r-- | calendar/cal-util/cal-component.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index b0269ba262..43c6841b2c 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -3100,9 +3100,9 @@ cal_component_get_transparency (CalComponent *comp, CalComponentTransparency *tr val = icalproperty_get_transp (priv->transparency); - if (strcasecmp (val, "TRANSPARENT")) + if (strcasecmp (val, "TRANSPARENT") == 0) *transp = CAL_COMPONENT_TRANSP_TRANSPARENT; - else if (strcasecmp (val, "OPAQUE")) + else if (strcasecmp (val, "OPAQUE") == 0) *transp = CAL_COMPONENT_TRANSP_OPAQUE; else *transp = CAL_COMPONENT_TRANSP_UNKNOWN; diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index b912c04e9e..95d2b1eb0b 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -54,6 +54,9 @@ typedef enum { /* Field identifiers for a calendar component; these are used by the data model * for ETable. + * + * NOTE: These are also used in the ETable specification, and the column + * numbers are saved in the user settings file. So don't reorder them! */ typedef enum { CAL_COMPONENT_FIELD_CATEGORIES, /* concatenation of the categories list */ @@ -74,6 +77,7 @@ typedef enum { CAL_COMPONENT_FIELD_RECURRING, /* not a real field */ CAL_COMPONENT_FIELD_OVERDUE, /* not a real field */ CAL_COMPONENT_FIELD_COLOR, /* not a real field */ + CAL_COMPONENT_FIELD_STATUS, CAL_COMPONENT_FIELD_NUM_FIELDS } CalComponentField; |