From 4e4f2e20da2051d32beffcb5f650d27f9bda1d93 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 17 Oct 2007 10:51:06 +0300 Subject: [PATCH] Don't hide progress bar, just set text to "" --- src/osm-db.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/osm-db.c b/src/osm-db.c index df068eb..40ee06d 100644 --- a/src/osm-db.c +++ b/src/osm-db.c @@ -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); } -- 2.39.5