ply_trace ("loading animation");
if (!ply_animation_load (view->end_animation))
{
+ ply_trace ("Default animation wouldn't load, "
+ "falling back to old naming scheme");
+
/* fallback to throbber- for compatibility
*/
ply_animation_free (view->end_animation);
view->end_animation = ply_animation_new (view->plugin->animation_dir,
"throbber-");
if (!ply_animation_load (view->end_animation))
- return false;
+ {
+ ply_trace ("old naming scheme didn't work either");
+ return false;
+ }
ply_throbber_free (view->throbber);
view->throbber = NULL;
ply_trace ("loading progress animation");
if (!ply_progress_animation_load (view->progress_animation))
- return false;
+ {
+ ply_trace ("progress animation wouldn't load");
+ return false;
+ }
if (view->throbber != NULL)
{
view->throbber = NULL;
}
}
+ else
+ {
+ ply_trace ("this theme has no throbber\n");
+ }
return true;
}
{
ply_list_node_t *node;
+ ply_trace ("pausing views");
+
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
{
ply_list_node_t *node;
+ ply_trace ("unpausing views");
+
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
x = plugin->animation_horizontal_alignment * screen_width - width / 2.0;
y = plugin->animation_vertical_alignment * screen_height - height / 2.0;
+ ply_trace ("starting end sequence animation for %ldx%ld view", width, height);
ply_animation_start (view->end_animation,
view->display,
trigger, x, y);
static void
on_view_throbber_stopped (view_t *view)
{
+ ply_trace ("hiding progress animation");
ply_progress_animation_hide (view->progress_animation);
view_start_end_animation (view, view->end_trigger);
view->end_trigger = NULL;
image_dir = ply_key_file_get_value (key_file, "two-step", "ImageDir");
+ ply_trace ("Using '%s' as working directory", image_dir);
+
asprintf (&image_path, "%s/lock.png", image_dir);
plugin->lock_image = ply_image_new (image_path);
free (image_path);
{
ply_list_node_t *node;
+ ply_trace ("freeing views");
+
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
if (plugin == NULL)
return;
+ ply_trace ("destroying plugin");
+
if (plugin->loop != NULL)
{
stop_animation (plugin, NULL);
start_end_animation (ply_boot_splash_plugin_t *plugin,
ply_trigger_t *trigger)
{
+ ply_trace ("starting end animation");
ply_list_node_t *node;
+
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
if (view->throbber != NULL)
{
+ ply_trace ("stopping throbber");
view->end_trigger = trigger;
throbber_trigger = ply_trigger_new (NULL);
ply_trigger_add_handler (throbber_trigger,
}
else
{
+ ply_trace ("hiding progress animation");
ply_progress_animation_hide (view->progress_animation);
view_start_end_animation (view, trigger);
}
if (plugin->is_animating)
return;
+ ply_trace ("starting animation");
+
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
if (!plugin->is_animating)
return;
+ ply_trace ("stopping animation%s",
+ trigger != NULL? " with trigger" : "");
+
plugin->is_animating = false;
node = ply_list_get_first_node (plugin->views);
view = ply_list_node_get_data (node);
next_node = ply_list_get_next_node (plugin->views, node);
+ ply_trace ("hiding progress animation");
ply_progress_animation_hide (view->progress_animation);
if (trigger != NULL)
ply_trigger_ignore_next_pull (trigger);
{
view_t *view;
+ ply_trace ("adding pixel display to plugin");
view = view_new (plugin, display);
ply_pixel_display_set_draw_handler (view->display,
{
ply_list_node_t *node;
+ ply_trace ("removing pixel display from plugin");
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
{
if (plugin->stop_trigger == NULL)
{
+ ply_trace ("boot progressed to end");
+
plugin->stop_trigger = ply_trigger_new (&plugin->stop_trigger);
ply_trigger_add_handler (plugin->stop_trigger,
(ply_trigger_handler_t)
{
assert (plugin != NULL);
+ ply_trace ("hiding splash");
if (plugin->loop != NULL)
{
stop_animation (plugin, NULL);
{
ply_list_node_t *node;
+ ply_trace ("showing password prompt");
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
{
ply_list_node_t *node;
+ ply_trace ("showing prompt");
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
static void
on_root_mounted (ply_boot_splash_plugin_t *plugin)
{
+ ply_trace ("root filesystem mounted");
plugin->root_is_mounted = true;
}
become_idle (ply_boot_splash_plugin_t *plugin,
ply_trigger_t *idle_trigger)
{
+ ply_trace ("deactivation requested");
if (plugin->is_idle)
{
+ ply_trace ("plugin is already idle");
ply_trigger_pull (idle_trigger, NULL);
return;
}
if (plugin->stop_trigger == NULL)
{
+ ply_trace ("waiting for plugin to stop");
plugin->stop_trigger = ply_trigger_new (&plugin->stop_trigger);
ply_trigger_add_handler (plugin->stop_trigger,
(ply_trigger_handler_t)
plugin);
start_end_animation (plugin, plugin->stop_trigger);
}
+ else
+ {
+ ply_trace ("already waiting for plugin to stop");
+ }
}
static void
{
ply_list_node_t *node;
+ ply_trace ("hiding prompt");
node = ply_list_get_first_node (plugin->views);
while (node != NULL)
{
show_message (ply_boot_splash_plugin_t *plugin,
const char *message)
{
+ ply_trace ("Showing message '%s'", message);
ply_list_node_t *node;
node = ply_list_get_first_node (plugin->views);
while (node != NULL)