From: Ray Strode Date: Wed, 24 Oct 2012 19:40:48 +0000 (-0400) Subject: throbgress: reshow label after changing message X-Git-Tag: 0.8.8~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15171685d8bcc86bd700e41954b5995ce2249def;p=thirdparty%2Fplymouth.git throbgress: reshow label after changing message 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 --- diff --git a/src/plugins/splash/throbgress/plugin.c b/src/plugins/splash/throbgress/plugin.c index 5eb53122..5ed6c065 100644 --- a/src/plugins/splash/throbgress/plugin.c +++ b/src/plugins/splash/throbgress/plugin.c @@ -128,8 +128,6 @@ view_new (ply_boot_splash_plugin_t *plugin, view->progress_bar = ply_progress_bar_new (); 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); return view; } @@ -861,6 +859,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));