]> err.no Git - mapper/commitdiff
Don't hide progress bar, just set text to ""
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 17 Oct 2007 07:51:06 +0000 (10:51 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 17 Oct 2007 07:51:06 +0000 (10:51 +0300)
src/osm-db.c

index df068eba402b9bb07d20d3ad6e522e47bf6eb930..40ee06d9095a944fe77afaa93a03c315c91982a7 100644 (file)
@@ -104,7 +104,8 @@ osm_progress_hide(sqlite3 *db)
 {
 if (!dbpw)
        return;
-gtk_widget_hide(GTK_WIDGET(dbpw));
+gtk_progress_bar_set_text(dbpw, "");
+gtk_progress_bar_set_fraction(dbpw, 0.0);
 sqlite3_progress_handler(db, OSM_DB_PROGRESS_NUM, NULL, NULL);
 }
 
@@ -113,10 +114,7 @@ osm_progress_show(sqlite3 *db)
 {
 if (!dbpw)
        return;
-gtk_widget_show(GTK_WIDGET(dbpw));
-#if 0
-gtk_progress_bar_set_text(_progress_item, text);
-#endif
+gtk_progress_bar_set_text(dbpw, _("Searching..."));
 sqlite3_progress_handler(db, OSM_DB_PROGRESS_NUM, osm_progress, NULL);
 }