SetSystemUpdateFunction Usage
I have a Plymouth script with a section like so:
fun progress_callback (progress) {
dbg ("Progress");
new_width = Math.Int (progress_width * progress / 100);
progress_bar.image = progress_bar.original_image.Scale (new_width, progress_height);
progress_bar.sprite.SetImage (progress_bar.image);
}
Plymouth.SetSystemUpdateFunction(progress_callback);
With plymouth --debug
, I'm continually running across this error: on_system_update:failed to update splash
. Seems that splash->plugin_interface->system_update is a NULL
pointer, so it returns false and prints that message.
What would I be missing to cause plugin_interface->system_update
to be NULL
?
As a side note, I noticed that script_lib_plymouth_destroy does not contain script_obj_unref (data->script_system_update_func);
, like the other script objects. Is this intended?