diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-10-14 08:54:54 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-10-14 08:54:54 +0000 |
commit | 29747f458a1eb2ce23b4594b09d0256dd62760b8 (patch) | |
tree | 1b71ba5d9ffdd308b6c18130f7c116f5bab5dc12 /deskutils/contacts | |
parent | 7aad84f808b93baa6a7077ce0b47573b9c4c79a0 (diff) |
Notes
Diffstat (limited to 'deskutils/contacts')
-rw-r--r-- | deskutils/contacts/Makefile | 1 | ||||
-rw-r--r-- | deskutils/contacts/files/patch-src_constacts-utils.c | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/deskutils/contacts/Makefile b/deskutils/contacts/Makefile index 24249972fa10..b9e54845044e 100644 --- a/deskutils/contacts/Makefile +++ b/deskutils/contacts/Makefile @@ -7,6 +7,7 @@ PORTNAME= contacts PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= deskutils gnome MASTER_SITES= http://www.openedhand.com/~chris/ \ http://smyru.petronet.pl/freebsd/ diff --git a/deskutils/contacts/files/patch-src_constacts-utils.c b/deskutils/contacts/files/patch-src_constacts-utils.c new file mode 100644 index 000000000000..605a374d5802 --- /dev/null +++ b/deskutils/contacts/files/patch-src_constacts-utils.c @@ -0,0 +1,44 @@ +--- src/contacts-utils.c.orig Sat Sep 30 02:02:40 2006 ++++ src/contacts-utils.c Sat Sep 30 02:03:54 2006 +@@ -180,13 +180,13 @@ + + /* TODO: Would adding a struct for this be gratuititous? RB: NOT AT ALL */ + static const gchar **contacts_field_types[] = { +- (gchar *[]){ "TEL", "Home", "Msg", "Work", "Pref", "Voice", "Fax", ++ (const gchar *[]){ "TEL", "Home", "Msg", "Work", "Pref", "Voice", "Fax", + "Cell", "Video", "Pager", "BBS", "Modem", "Car", + "ISDN", "PCS", NULL }, +- (gchar *[]){ "EMAIL", "Internet", "X400", "Pref", NULL }, +- (gchar *[]){ "ADR", "Dom", "Intl", "Postal", "Parcel", "Home", "Work", ++ (const gchar *[]){ "EMAIL", "Internet", "X400", "Pref", NULL }, ++ (const gchar *[]){ "ADR", "Dom", "Intl", "Postal", "Parcel", "Home", "Work", + "Pref", NULL }, +- (gchar *[]){ NULL } ++ (const gchar *[]){ NULL } + }; + + const gchar ** +@@ -357,8 +357,8 @@ + switch (photo->type) { + case E_CONTACT_PHOTO_TYPE_INLINED : + gdk_pixbuf_loader_write (loader, +- photo->inlined.data, +- photo->inlined.length, NULL); ++ photo->data.inlined.data, ++ photo->data.inlined.length, NULL); + break; + case E_CONTACT_PHOTO_TYPE_URI : + default : +@@ -545,9 +545,9 @@ + int *length; + #if HAVE_PHOTO_TYPE + new_photo.type = E_CONTACT_PHOTO_TYPE_INLINED; +- data = &new_photo.inlined.data; +- length = &new_photo.inlined.length; +- new_photo.inlined.mime_type = NULL; ++ data = &new_photo.data.inlined.data; ++ length = &new_photo.data.inlined.length; ++ new_photo.data.inlined.mime_type = NULL; + #else + data = &new_photo.data; + length = &new_photo.length; |