aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-20 15:56:19 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-20 15:56:19 +0200
commit0f46a6bb6c415f37ac8159e085471c84d224e575 (patch)
tree663d9d35875c5c57dbf8f90863c2f082e38c1d38
parent1c91e1a6b080421d98198283e19eac8bbe9589cf (diff)
downloadanastasis-gtk-0f46a6bb6c415f37ac8159e085471c84d224e575.tar.gz
anastasis-gtk-0f46a6bb6c415f37ac8159e085471c84d224e575.tar.bz2
anastasis-gtk-0f46a6bb6c415f37ac8159e085471c84d224e575.zip
-fix iban entry logic
-rw-r--r--src/anastasis/anastasis-gtk_handle-method-iban.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-method-iban.c b/src/anastasis/anastasis-gtk_handle-method-iban.c
index 104b4c3..f0487e1 100644
--- a/src/anastasis/anastasis-gtk_handle-method-iban.c
+++ b/src/anastasis/anastasis-gtk_handle-method-iban.c
@@ -45,7 +45,8 @@ mask_iban (const char *iban)
GNUNET_assert (slen > 5);
GNUNET_asprintf (&result,
- "%2s...%s",
+ "%.*s...%s",
+ (int) 5,
iban,
&iban[slen - 5]);
return result;
@@ -108,8 +109,8 @@ anastasis_gtk_b_iban_dialog_response_cb (GtkDialog *dialog,
void
-anastasis_gtk_b_iban_dialog_mailaddress_entry_changed_cb (GtkEntry *entry,
- gpointer user_data)
+anastasis_gtk_b_iban_dialog_iban_entry_changed_cb (GtkEntry *entry,
+ gpointer user_data)
{
GtkBuilder *builder = GTK_BUILDER (user_data);
GtkEntry *q;
@@ -117,7 +118,7 @@ anastasis_gtk_b_iban_dialog_mailaddress_entry_changed_cb (GtkEntry *entry,
char *err;
q = GTK_ENTRY (gtk_builder_get_object (builder,
- "anastasis_gtk_b_iban_dialog_mailaddress_entry"));
+ "anastasis_gtk_b_iban_dialog_iban_entry"));
qs = gtk_entry_get_text (q);
err = TALER_iban_validate (qs);
gtk_widget_set_sensitive (