From 07e623e138de6d7479b7bd505e9791b666928339 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 17 Oct 2007 10:51:30 +0300 Subject: [PATCH] Don't hide progress bar --- src/hildon-wrappers.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/hildon-wrappers.c b/src/hildon-wrappers.c index 198fed2..fd1b6d1 100644 --- a/src/hildon-wrappers.c +++ b/src/hildon-wrappers.c @@ -74,18 +74,16 @@ return NULL; void hildon_banner_set_fraction(GtkWidget * widget, gdouble fraction) { gtk_progress_bar_set_fraction(_progress_item, fraction); -if (fraction==1.0) { - gtk_progress_bar_set_text(_progress_item, ""); - gtk_widget_hide(_progress_item); -} else - gtk_widget_show(_progress_item); +if (fraction<1.0) + return; +gtk_progress_bar_set_text(_progress_item, ""); +gtk_progress_bar_set_fraction(_progress_item, 0.0); } GtkWidget *hildon_banner_show_animation(GtkWidget *widget, const gchar *animation_name, const gchar *text) { hildon_banner_show_information(_status_bar, NULL, text); gtk_progress_bar_set_text(_progress_item, text); -gtk_widget_show(_progress_item); gtk_progress_bar_pulse(_progress_item); return NULL; } -- 2.39.5