]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
space-flares: reshow label after changing message
authorRay Strode <rstrode@redhat.com>
Wed, 24 Oct 2012 19:40:48 +0000 (15:40 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 24 Oct 2012 19:44:41 +0000 (15:44 -0400)
We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669

src/plugins/splash/space-flares/plugin.c

index fc86c8c7419b6c5d3d69a482e6961d6012e1bd58..e31dce877be0e91aeca2fd82f9e19992b4a9f939 100644 (file)
@@ -219,8 +219,6 @@ view_new (ply_boot_splash_plugin_t *plugin,
   view->entry = ply_entry_new (plugin->image_dir);
   view->label = ply_label_new ();
   view->message_label = ply_label_new ();
-  ply_label_set_text (view->message_label, "");
-  ply_label_show (view->message_label, view->display, 10, 10);
 
   view->sprites = ply_list_new ();
 
@@ -1809,6 +1807,8 @@ show_message (ply_boot_splash_plugin_t *plugin,
       view = ply_list_node_get_data (node);
       next_node = ply_list_get_next_node (plugin->views, node);
       ply_label_set_text (view->message_label, message);
+      ply_label_show (view->message_label, view->display, 10, 10);
+
       ply_pixel_display_draw_area (view->display, 10, 10,
                                    ply_label_get_width (view->message_label),
                                    ply_label_get_height(view->message_label));