After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 313533 - Allow EContactPhoto to refer to images with URIs
Allow EContactPhoto to refer to images with URIs
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
1.8.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
: 346544 (view as bug list)
Depends on: 347752
Blocks:
 
 
Reported: 2005-08-15 16:16 UTC by Ross Burton
Modified: 2013-09-14 16:49 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Allow photo to be a URI (6.54 KB, patch)
2005-08-15 16:18 UTC, Ross Burton
none Details | Review
Revised patch (5.56 KB, patch)
2006-07-04 14:01 UTC, Ross Burton
accepted-commit_now Details | Review
Patch to fix the build. (1.83 KB, patch)
2006-07-17 13:21 UTC, Sushma Rai
none Details | Review
Revised patch (1.63 KB, patch)
2006-07-18 08:45 UTC, Ross Burton
none Details | Review
Revised patch (1.67 KB, patch)
2006-07-18 09:11 UTC, Ross Burton
accepted-commit_now Details | Review

Description Ross Burton 2005-08-15 16:16:50 UTC
The vCard specification allows PHOTO fields to either contain inline image data,
or to point at an image with a URI.  Currently EContactPhoto only supports
inline image data, attaching a patch to extend this.
Comment 1 Ross Burton 2005-08-15 16:18:45 UTC
Created attachment 50728 [details] [review]
Allow photo to be a URI

This patch adds a type member and a union to EContactPhoto.  It also sneaks in
a patch to e-vcard.c to add:

GList *e_vcard_attribute_get_param(EVCardAttribute *attr, const char *name);

Which is pretty useful on the whole.
Comment 2 Sushma Rai 2005-08-16 09:28:56 UTC
For now changing EContactPhoto would break ABI freeze.
Comment 3 Ross Burton 2005-08-16 09:44:06 UTC
Yes it would.  I filed now as I'm working on it now and didn't want to forget
about it. :)
Comment 4 Chris Scobell 2005-08-19 05:59:42 UTC
Marking as an enhancement.
Comment 5 Ross Burton 2006-07-04 13:56:19 UTC
*** Bug 346544 has been marked as a duplicate of this bug. ***
Comment 6 Ross Burton 2006-07-04 14:01:32 UTC
Created attachment 68352 [details] [review]
Revised patch

This patch is C89 compliant (no anonymous unions) and is tested: it's in Maemo 2.0.
Comment 7 Ross Burton 2006-07-04 14:03:26 UTC
Any chance of this landing in 1.8?
Comment 8 André Klapper 2006-07-08 00:48:46 UTC
oh my god, i want this. a friend of mine asked exactly *that* question yesterday and if its possible in evolution.
/me wants an ABI break.
Comment 9 Devashish Sharma 2006-07-14 09:37:33 UTC
ok this can be committed.
Comment 10 Ross Burton 2006-07-14 09:53:38 UTC
This will break Evolution builds and introduce an ABI break.  I don't have an Evolution checkout at the moment, will someone else fix that?

Also will the versions in configure.ac be increased on release, or should I do that when I commit?
Comment 11 Devashish Sharma 2006-07-14 10:05:23 UTC
Ok Ross wait till monday i will update you about versions stuff, whether you have to update that or it will be done at release time.
Comment 12 Ross Burton 2006-07-17 09:26:45 UTC
Devashish: a gentle reminder ping re versioning and breaking EDS. :)
Comment 13 Devashish Sharma 2006-07-17 09:38:30 UTC
you can commit the patch ross, versioning will be handled at the release time.
if you want me to commit lemme know.
Comment 14 Ross Burton 2006-07-17 10:10:12 UTC
Whilst preparing for committing I noticed that this patch depends on an API addition to libebook.  If #347752 is rejected I can re-code this patch, but that function call is very useful.
Comment 15 Ross Burton 2006-07-17 12:00:48 UTC
Committed to CVS, thanks!
Comment 16 Sushma Rai 2006-07-17 13:21:57 UTC
Created attachment 69041 [details] [review]
Patch to fix the build.

The above change is breaking the build. 
I have not tested this with ldap backend, but it fixes the build.
Comment 17 Ross Burton 2006-07-17 13:59:00 UTC
Arse, I appear to not have LDAP headers so didn't catch this.

You'll want to initialise the data.inlined.mime_type field to NULL too, but that looks reasonable to me.
Comment 18 André Klapper 2006-07-18 08:09:16 UTC
there is also a patch by hiroyuki at bug 347870 to fix this.

well, reopening this bug as long as head is not fixed.
Comment 19 Ross Burton 2006-07-18 08:45:13 UTC
Created attachment 69092 [details] [review]
Revised patch

I noticed that the previous LDAP patch was committed without incorporating my feedback.  Attached is a patch that finished the migration.
Comment 20 Ross Burton 2006-07-18 09:11:01 UTC
Created attachment 69093 [details] [review]
Revised patch

GCC kindly pointed out that a == b == c in C doesn't do what one expects.
Comment 21 Ross Burton 2006-07-18 11:12:52 UTC
Committed, thanks.  I think that is everything in EDS sorted now.
Comment 22 Devashish Sharma 2006-09-29 16:08:56 UTC
thanks for the effort Ross.