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 686369 - Don't use deprecated geocode_object_add() call
Don't use deprecated geocode_object_add() call
Status: RESOLVED DUPLICATE of bug 689055
Product: evolution
Classification: Applications
Component: Contacts
3.8.x (obsolete)
Other All
: Normal normal
: 3.12
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2012-10-18 11:54 UTC by Bastien Nocera
Modified: 2013-11-18 16:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't use deprecated geocode_object_add() call (1.83 KB, patch)
2012-10-18 11:54 UTC, Bastien Nocera
needs-work Details | Review
Don't use geocode_object_add() call (1.83 KB, patch)
2012-10-24 17:08 UTC, Bastien Nocera
reviewed Details | Review

Description Bastien Nocera 2012-10-18 11:54:18 UTC
Will be removed very soon.
Comment 1 Bastien Nocera 2012-10-18 11:54:19 UTC
Created attachment 226728 [details] [review]
Don't use deprecated geocode_object_add() call

The call was removed in favour of the
geocode_object_new_for_params() function.
Comment 2 Bastien Nocera 2012-10-18 13:05:20 UTC
Actually, the call wasn't removed, it should just be used for bindings, preferably.
Comment 3 Matthew Barnes 2012-10-19 14:08:49 UTC
Review of attachment 226728 [details] [review]:

Thanks for the patch, but it's incorrect.

geocode_object_new_for_params() expects a hash table of strings packed into GValues, not just raw strings.  I found that API awkward enough that I just opted for calling geocode_object_add() directly, which is all new_for_params() is doing internally.
Comment 4 Bastien Nocera 2012-10-24 17:08:44 UTC
Created attachment 227174 [details] [review]
Don't use geocode_object_add() call

It's a call that's mainly of use to bindings. Use
geocode_object_new_for_params_str() instead.
Comment 5 Bastien Nocera 2012-10-24 17:12:38 UTC
Better? Not sure whether it's a gain to use this function to be honest.
Comment 6 Matthew Barnes 2012-10-25 12:35:14 UTC
Thanks.  The patch is fine for Evolution 3.9.x but I'm not going to push our build requirements for 3.7/3.8 beyond what's available in GNOME 3.6.  I guess it would be best for now to just pack the strings into GValues after all and use the new_for_params() function.

I'll take care of it so I don't trouble you for another patch.
Comment 7 André Klapper 2013-09-05 10:55:50 UTC
(In reply to comment #6)
> The patch is fine for Evolution 3.9.x

mbarnes: ping. That's now (and that's why Target Milestones could help).
Comment 8 Matthew Barnes 2013-09-05 11:01:46 UTC
Target is Evolution 3.11 now.

https://mail.gnome.org/archives/evolution-hackers/2013-September/msg00001.html
Comment 9 Matthew Barnes 2013-11-18 16:30:30 UTC

*** This bug has been marked as a duplicate of bug 689055 ***