]> err.no Git - mapper/commitdiff
Hide the progress bar
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 28 Jun 2007 13:17:28 +0000 (16:17 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 28 Jun 2007 13:17:28 +0000 (16:17 +0300)
src/hildon-wrappers.c
src/map.c

index 3d6c8fa9fff71e76258e607e2704010628c0d514..0db0ac53ff2e5f5da4f1d6c333dc6cdad238ab75 100644 (file)
@@ -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
index d6a534fe1f6747cea2f452f5236dbfaf4ec7bd93..02e59c4c547b31dbec3935f5e1989034eca4d3d9 100644 (file)
--- 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),