Previously if the user mistyped their password they
would get shown and entry with their old bullets still
there.
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,
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 */
plugin->pending_password_answer = NULL;
ply_entry_hide (plugin->entry);
+ ply_entry_remove_all_bullets (plugin->entry);
start_animation (plugin);
}