Lines 1-44
Link Here
|
1 |
--- src/contacts-utils.c.orig Sat Sep 30 02:02:40 2006 |
|
|
2 |
+++ src/contacts-utils.c Sat Sep 30 02:03:54 2006 |
3 |
@@ -180,13 +180,13 @@ |
4 |
|
5 |
/* TODO: Would adding a struct for this be gratuititous? RB: NOT AT ALL */ |
6 |
static const gchar **contacts_field_types[] = { |
7 |
- (gchar *[]){ "TEL", "Home", "Msg", "Work", "Pref", "Voice", "Fax", |
8 |
+ (const gchar *[]){ "TEL", "Home", "Msg", "Work", "Pref", "Voice", "Fax", |
9 |
"Cell", "Video", "Pager", "BBS", "Modem", "Car", |
10 |
"ISDN", "PCS", NULL }, |
11 |
- (gchar *[]){ "EMAIL", "Internet", "X400", "Pref", NULL }, |
12 |
- (gchar *[]){ "ADR", "Dom", "Intl", "Postal", "Parcel", "Home", "Work", |
13 |
+ (const gchar *[]){ "EMAIL", "Internet", "X400", "Pref", NULL }, |
14 |
+ (const gchar *[]){ "ADR", "Dom", "Intl", "Postal", "Parcel", "Home", "Work", |
15 |
"Pref", NULL }, |
16 |
- (gchar *[]){ NULL } |
17 |
+ (const gchar *[]){ NULL } |
18 |
}; |
19 |
|
20 |
const gchar ** |
21 |
@@ -357,8 +357,8 @@ |
22 |
switch (photo->type) { |
23 |
case E_CONTACT_PHOTO_TYPE_INLINED : |
24 |
gdk_pixbuf_loader_write (loader, |
25 |
- photo->inlined.data, |
26 |
- photo->inlined.length, NULL); |
27 |
+ photo->data.inlined.data, |
28 |
+ photo->data.inlined.length, NULL); |
29 |
break; |
30 |
case E_CONTACT_PHOTO_TYPE_URI : |
31 |
default : |
32 |
@@ -545,9 +545,9 @@ |
33 |
int *length; |
34 |
#if HAVE_PHOTO_TYPE |
35 |
new_photo.type = E_CONTACT_PHOTO_TYPE_INLINED; |
36 |
- data = &new_photo.inlined.data; |
37 |
- length = &new_photo.inlined.length; |
38 |
- new_photo.inlined.mime_type = NULL; |
39 |
+ data = &new_photo.data.inlined.data; |
40 |
+ length = &new_photo.data.inlined.length; |
41 |
+ new_photo.data.inlined.mime_type = NULL; |
42 |
#else |
43 |
data = &new_photo.data; |
44 |
length = &new_photo.length; |