Remove all entry bullets if the user presses enter

Previously if the user mistyped their password they
would get shown and entry with their old bullets still
there.
This commit is contained in:
Ray Strode 2008-08-05 17:22:16 -04:00
parent 2e3974e86a
commit 6a96ca6ef4
3 changed files with 9 additions and 0 deletions

View file

@ -209,6 +209,13 @@ ply_entry_remove_bullet (ply_entry_t *entry)
ply_entry_draw (entry);
}
void
ply_entry_remove_all_bullets (ply_entry_t *entry)
{
entry->number_of_bullets = 0;
ply_entry_draw (entry);
}
void
ply_entry_show (ply_entry_t *entry,
ply_event_loop_t *loop,

View file

@ -51,6 +51,7 @@ long ply_entry_get_height (ply_entry_t *entry);
void ply_entry_add_bullet (ply_entry_t *entry);
void ply_entry_remove_bullet (ply_entry_t *entry);
void ply_entry_remove_all_bullets (ply_entry_t *entry);
#endif
#endif /* PLY_ENTRY_H */

View file

@ -245,6 +245,7 @@ on_enter (ply_boot_splash_plugin_t *plugin,
plugin->pending_password_answer = NULL;
ply_entry_hide (plugin->entry);
ply_entry_remove_all_bullets (plugin->entry);
start_animation (plugin);
}