]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
respond w/ "" if user hits esc to password prompt
authorRay Strode <rstrode@redhat.com>
Wed, 27 Aug 2008 20:01:28 +0000 (16:01 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 27 Aug 2008 20:01:28 +0000 (16:01 -0400)
This is so when we load the next plugin it won't
get confused.

src/plugins/splash/details/plugin.c
src/plugins/splash/fade-in/plugin.c
src/plugins/splash/spinfinity/plugin.c
src/plugins/splash/text/plugin.c

index 50e13abe8f9c82c598e18d0cad54c2f4c4cd6ceb..3706e81f4b32e5ad50869435f2b29c6d813d8319 100644 (file)
@@ -205,6 +205,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
 
   ply_trace ("hiding splash screen");
 
+  if (plugin->pending_password_answer != NULL)
+    {
+      ply_answer_with_string (plugin->pending_password_answer, "");
+      plugin->pending_password_answer = NULL;
+    }
+
   ply_window_set_keyboard_input_handler (window, NULL, NULL);
   ply_window_set_backspace_handler (window, NULL, NULL);
   ply_window_set_enter_handler (window, NULL, NULL);
index 2641217e3f68c7b5134d98de1beb1abfe514aab8..604c1814e69e1b454eef3730e68f6a46ae79dbd9 100644 (file)
@@ -578,6 +578,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
 {
   assert (plugin != NULL);
 
+  if (plugin->pending_password_answer != NULL)
+    {
+      ply_answer_with_string (plugin->pending_password_answer, "");
+      plugin->pending_password_answer = NULL;
+    }
+
   ply_window_set_keyboard_input_handler (window, NULL, NULL);
   ply_window_set_backspace_handler (window, NULL, NULL);
   ply_window_set_enter_handler (window, NULL, NULL);
index 44d66cf35b432b4ce45c80408bb901c73557ad70..cd9a85b033a14438e8cc73fb37d15c8a7a01d6c7 100644 (file)
@@ -387,6 +387,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
 {
   assert (plugin != NULL);
 
+  if (plugin->pending_password_answer != NULL)
+    {
+      ply_answer_with_string (plugin->pending_password_answer, "");
+      plugin->pending_password_answer = NULL;
+    }
+
   ply_window_set_keyboard_input_handler (window, NULL, NULL);
   ply_window_set_backspace_handler (window, NULL, NULL);
   ply_window_set_enter_handler (window, NULL, NULL);
index 11c2dc4d4290b1bebf986743bebd75a9686d6ac5..465d7634e79041d5136ab381d5de0a57cdc8f46f 100644 (file)
@@ -253,6 +253,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
 
   ply_trace ("hiding splash screen");
 
+  if (plugin->pending_password_answer != NULL)
+    {
+      ply_answer_with_string (plugin->pending_password_answer, "");
+      plugin->pending_password_answer = NULL;
+    }
+
   ply_window_set_keyboard_input_handler (window, NULL, NULL);
   ply_window_set_backspace_handler (window, NULL, NULL);
   ply_window_set_enter_handler (window, NULL, NULL);