From: Kaj-Michael Lang Date: Wed, 17 Oct 2007 07:51:06 +0000 (+0300) Subject: Don't hide progress bar, just set text to "" X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4f2e20da2051d32beffcb5f650d27f9bda1d93;p=mapper Don't hide progress bar, just set text to "" --- 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); }