]> err.no Git - mapper/commitdiff
Don't hide progress bar
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 17 Oct 2007 07:51:30 +0000 (10:51 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 17 Oct 2007 07:51:30 +0000 (10:51 +0300)
src/hildon-wrappers.c

index 198fed276c514335e37a996516ca45bf7c1b99cf..fd1b6d17bebfc9243a4f0e9467cf04297406fc2c 100644 (file)
@@ -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;
 }