]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
two-step: Group progress_animaton init together with creation
authorHans de Goede <hdegoede@redhat.com>
Sat, 28 Sep 2019 09:56:07 +0000 (11:56 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 30 Sep 2019 09:15:31 +0000 (11:15 +0200)
Move ply_progress_animation_set_transition call up, grouping it with the
ply_progress_animation_new call.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/plugins/splash/two-step/plugin.c

index 6d8ae72b9ca4c1574ba49d09473c4da740011669..a03fdaffbc1bd8015cd84fc02b9caef1602979df 100644 (file)
@@ -212,6 +212,10 @@ view_new (ply_boot_splash_plugin_t *plugin,
         view->capslock_icon = ply_capslock_icon_new (plugin->animation_dir);
         view->progress_animation = ply_progress_animation_new (plugin->animation_dir,
                                                                "progress-");
+        ply_progress_animation_set_transition (view->progress_animation,
+                                               plugin->transition,
+                                               plugin->transition_duration);
+
         view->progress_bar = ply_progress_bar_new ();
         ply_progress_bar_set_colors (view->progress_bar,
                                      plugin->progress_bar_fg_color,
@@ -219,9 +223,6 @@ view_new (ply_boot_splash_plugin_t *plugin,
 
         view->throbber = ply_throbber_new (plugin->animation_dir,
                                            "throbber-");
-        ply_progress_animation_set_transition (view->progress_animation,
-                                               plugin->transition,
-                                               plugin->transition_duration);
 
         view->label = ply_label_new ();
         ply_label_set_font (view->label, plugin->font);