From 18447890ffbbcb3667056a554116f97b65d106b6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 21 Oct 2010 00:20:57 -0400 Subject: ESignatureList cleanups. --- widgets/misc/e-signature-editor.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/e-signature-editor.c b/widgets/misc/e-signature-editor.c index effbf8bc30..68bd3a323f 100644 --- a/widgets/misc/e-signature-editor.c +++ b/widgets/misc/e-signature-editor.c @@ -175,10 +175,9 @@ action_save_and_close_cb (GtkAction *action, return; } - /* Don't overwrite an existing signature of the same name. - * XXX ESignatureList misuses const. */ - same_name = (ESignature *) e_signature_list_find ( - signature_list, E_SIGNATURE_FIND_NAME, signature_name); + /* Don't overwrite an existing signature of the same name. */ + same_name = + e_signature_list_find_by_name (signature_list, signature_name); if (same_name != NULL && !e_signature_is_equal (signature, same_name)) { e_alert_submit ( GTK_WIDGET (editor), -- cgit v1.2.3