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;
}