From: Ray Strode Date: Tue, 5 Aug 2008 21:22:16 +0000 (-0400) Subject: Remove all entry bullets if the user presses enter X-Git-Tag: 0.6.0~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a96ca6ef4964dc54099f0f8d3135f70cde236f7;p=thirdparty%2Fplymouth.git 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. --- diff --git a/src/libplybootsplash/ply-entry.c b/src/libplybootsplash/ply-entry.c index 074493b3..cf28d37c 100644 --- a/src/libplybootsplash/ply-entry.c +++ b/src/libplybootsplash/ply-entry.c @@ -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, diff --git a/src/libplybootsplash/ply-entry.h b/src/libplybootsplash/ply-entry.h index c701185c..ac34a4c5 100644 --- a/src/libplybootsplash/ply-entry.h +++ b/src/libplybootsplash/ply-entry.h @@ -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 */ diff --git a/src/splash-plugins/spinfinity/plugin.c b/src/splash-plugins/spinfinity/plugin.c index b4fe3bb3..3b76518f 100644 --- a/src/splash-plugins/spinfinity/plugin.c +++ b/src/splash-plugins/spinfinity/plugin.c @@ -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); }