diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-21 12:20:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-21 12:24:46 +0800 |
commit | 18447890ffbbcb3667056a554116f97b65d106b6 (patch) | |
tree | d54839b8d813b54996f2d3f196e1acf086b1bc89 /e-util/e-signature-utils.c | |
parent | 4a08257b83512cc32b73d732ccc53266a22b917c (diff) | |
download | gsoc2013-evolution-18447890ffbbcb3667056a554116f97b65d106b6.tar gsoc2013-evolution-18447890ffbbcb3667056a554116f97b65d106b6.tar.gz gsoc2013-evolution-18447890ffbbcb3667056a554116f97b65d106b6.tar.bz2 gsoc2013-evolution-18447890ffbbcb3667056a554116f97b65d106b6.tar.lz gsoc2013-evolution-18447890ffbbcb3667056a554116f97b65d106b6.tar.xz gsoc2013-evolution-18447890ffbbcb3667056a554116f97b65d106b6.tar.zst gsoc2013-evolution-18447890ffbbcb3667056a554116f97b65d106b6.zip |
ESignatureList cleanups.
Diffstat (limited to 'e-util/e-signature-utils.c')
-rw-r--r-- | e-util/e-signature-utils.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/e-util/e-signature-utils.c b/e-util/e-signature-utils.c index d42d6f325d..8c190791d5 100644 --- a/e-util/e-signature-utils.c +++ b/e-util/e-signature-utils.c @@ -52,34 +52,24 @@ ESignature * e_get_signature_by_name (const gchar *name) { ESignatureList *signature_list; - const ESignature *signature; - e_signature_find_t find; g_return_val_if_fail (name != NULL, NULL); - find = E_SIGNATURE_FIND_NAME; signature_list = e_get_signature_list (); - signature = e_signature_list_find (signature_list, find, name); - /* XXX ESignatureList misuses const. */ - return (ESignature *) signature; + return e_signature_list_find_by_name (signature_list, name); } ESignature * e_get_signature_by_uid (const gchar *uid) { ESignatureList *signature_list; - const ESignature *signature; - e_signature_find_t find; g_return_val_if_fail (uid != NULL, NULL); - find = E_SIGNATURE_FIND_UID; signature_list = e_get_signature_list (); - signature = e_signature_list_find (signature_list, find, uid); - /* XXX ESignatureList misuses const. */ - return (ESignature *) signature; + return e_signature_list_find_by_uid (signature_list, uid); } gchar * |