]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Remove all entry bullets if the user presses enter
authorRay Strode <rstrode@redhat.com>
Tue, 5 Aug 2008 21:22:16 +0000 (17:22 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 5 Aug 2008 21:28:31 +0000 (17:28 -0400)
Previously if the user mistyped their password they
would get shown and entry with their old bullets still
there.

src/libplybootsplash/ply-entry.c
src/libplybootsplash/ply-entry.h
src/splash-plugins/spinfinity/plugin.c

index 074493b3c26f8c2bc89231e3efb3dfd673c8b06a..cf28d37ced4a68769cc25b00d2a49140b5b1967d 100644 (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,
index c701185c01c59a3f51f095858be24d80b3935aa0..ac34a4c5e73ae67ba16c6f1af9e20bda6f7b4ae1 100644 (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 */
index b4fe3bb3abb4ffd210c3ed0985cc421ada7cc8a7..3b76518f17dc8a3f7c2738f8e4e73bea0bbab83f 100644 (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);
 }