libebook: Report missing phone number support by GError
authorMathias Hasselmann <mathias@openismus.com>
Thu, 7 Mar 2013 12:25:01 +0000 (13:25 +0100)
committerMathias Hasselmann <mathias@openismus.com>
Thu, 7 Mar 2013 13:14:44 +0000 (14:14 +0100)
commite7e2bd8b43d6110723fb36d53c6523fbff38bd3e
treedfe8fa68e3c47f52bfb2b01cfa47e7321ecb3503
parentddbef743eee52c7669523884cc43fb27901a5503
libebook: Report missing phone number support by GError

Add GError arguments to e_phone_number_get_default_region() and
e_phone_number_get_country_code_for_region() to properly report
missing phone number: Warnings cannot be handled programatically
and make GTest based unit tests failed.
addressbook/libebook-contacts/e-phone-number.c
addressbook/libebook-contacts/e-phone-number.h
addressbook/libedata-book/e-book-backend-sqlitedb.c
tests/libebook/test-ebook-phone-number.c