diff options
Diffstat (limited to 'addressbook/gui/contact-editor')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 8 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-quick-add.c | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 64965e9590..9f35370fa9 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -2191,7 +2191,7 @@ fill_in_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id) EContactPhoto *photo = e_contact_get (contact, field_id); if (photo && photo->type == E_CONTACT_PHOTO_TYPE_INLINED) { e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget), - photo->data.inlined.data, + (char *)photo->data.inlined.data, photo->data.inlined.length); editor->image_set = TRUE; } @@ -2247,9 +2247,9 @@ extract_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id) else if (E_IS_DATE_EDIT (widget)) { EContactDate date; if (e_date_edit_get_date (E_DATE_EDIT (widget), - &date.year, - &date.month, - &date.day)) + (int *)&date.year, + (int *)&date.month, + (int *)&date.day)) e_contact_set (contact, field_id, &date); else e_contact_set (contact, field_id, NULL); diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index ea3e7b6f35..044153a6c3 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -72,6 +72,7 @@ quick_add_new (void) return qa; } +#if 0 static void quick_add_ref (QuickAdd *qa) { @@ -79,6 +80,7 @@ quick_add_ref (QuickAdd *qa) ++qa->refs; } } +#endif static void quick_add_unref (QuickAdd *qa) |