2003-12-05 Chris Toshok <toshok@ximian.com>
* libebook/e-contact.c (e_contact_get_const): make this only work
for strings, since really that's all it works for now.
+2003-12-05 Chris Toshok <toshok@ximian.com>
+
+ * libebook/e-contact.c (e_contact_get_const): make this only work
+ for strings, since really that's all it works for now.
+
2003-12-05 Hans Petter Jansson <hpj@ximian.com>
* libebook/e-contact.c (e_contact_get_property): Return boxed type
return value;
}
-/* XXX this won't work for structure/list types... */
static void
free_const_data (gpointer data, GObject *where_object_was)
{
gpointer value;
g_return_val_if_fail (E_IS_CONTACT (contact), NULL);
- g_return_val_if_fail (field_id >= 1 && field_id <= E_CONTACT_FIELD_LAST, NULL);
+ g_return_val_if_fail (field_id >= 1 && field_id <= E_CONTACT_LAST_SIMPLE_STRING, NULL);
value = e_contact_get (contact, field_id);