From c412004b4b82505fea610c95c908792722e94548 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 28 Jun 2007 16:17:28 +0300 Subject: [PATCH] Hide the progress bar --- src/hildon-wrappers.c | 8 ++++++++ src/map.c | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/hildon-wrappers.c b/src/hildon-wrappers.c index 3d6c8fa..0db0ac5 100644 --- a/src/hildon-wrappers.c +++ b/src/hildon-wrappers.c @@ -133,4 +133,12 @@ void hildon_controlbar_set_range(GtkWidget * w, gint min, gint max) gtk_range_set_range(w, min, max); } +#else + +void +hildon_banner_hide(GtkWidget *w) +{ +gtk_widget_destroy(w); +} + #endif diff --git a/src/map.c b/src/map.c index d6a534f..02e59c4 100644 --- a/src/map.c +++ b/src/map.c @@ -720,8 +720,12 @@ gboolean map_download_idle_refresh(ProgressUpdateInfo * pui) g_tree_remove(_downloading_tree, pui); if (++_curr_download == _num_downloads) { +#ifdef WITH_HILDON gtk_widget_destroy(_download_banner); _download_banner = NULL; +#else + gtk_widget_hide(_progress_item); +#endif _num_downloads = _curr_download = 0; } else hildon_banner_set_fraction(HILDON_BANNER(_download_banner), -- 2.39.5