]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[boot-splash] Force progress to 1.0 when quitting
authorRay Strode <rstrode@redhat.com>
Thu, 6 May 2010 14:54:27 +0000 (10:54 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 6 May 2010 14:54:27 +0000 (10:54 -0400)
This potentially allows themes to move their progress
bars to the end before quiting.

src/libply-splash-core/ply-boot-splash.c

index df7da6a43f2018d12fffd6236956a93cb5386d76..0c77ef8fd7f1f377fc92674847737a5bee5e894a 100644 (file)
@@ -665,6 +665,12 @@ ply_boot_splash_become_idle (ply_boot_splash_t                  *splash,
 {
   assert (splash->idle_trigger == NULL);
 
+  if (splash->progress != NULL)
+    {
+      ply_progress_set_percentage (splash->progress, 1.0);
+      ply_boot_splash_update_progress (splash);
+    }
+
   ply_trace ("telling splash to become idle");
   if (splash->plugin_interface->become_idle == NULL)
     {