From: Hans de Goede Date: Sat, 28 Sep 2019 09:56:07 +0000 (+0200) Subject: two-step: Group progress_animaton init together with creation X-Git-Tag: 0.9.5~36^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dd6e91d2bfaf591114e1f18691c5b3d1ee17ea6;p=thirdparty%2Fplymouth.git two-step: Group progress_animaton init together with creation Move ply_progress_animation_set_transition call up, grouping it with the ply_progress_animation_new call. Signed-off-by: Hans de Goede --- diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index 6d8ae72b..a03fdaff 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -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);