From: Mark Cave-Ayland Date: Sat, 14 Jan 2012 13:10:27 +0000 (+0000) Subject: Display "Creating Index..." text within the progress dialog rather than within the... X-Git-Tag: 2.0.0alpha1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dfdea09b5a4595a551a5f3542e53ba206b71d87;p=postgis Display "Creating Index..." text within the progress dialog rather than within the shp2pgsql-gui log window. This should make it more obvious to users that something is still happening in the case that they are building on a index on larger shapefiles which can often take quite some time. git-svn-id: http://svn.osgeo.org/postgis/trunk@8814 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql-gui.c b/loader/shp2pgsql-gui.c index abe49409b..080c8e586 100644 --- a/loader/shp2pgsql-gui.c +++ b/loader/shp2pgsql-gui.c @@ -1185,9 +1185,14 @@ pgui_action_import(GtkWidget *widget, gpointer data) goto import_cleanup; } + /* Just in case index creation takes a long time, update the progress text */ if (state->config->createindex) { - pgui_logf(_("Creating spatial index...\n")); + gtk_label_set_text(GTK_LABEL(label_progress), _("Creating spatial index...")); + + /* Allow GTK events to get a look in */ + while (gtk_events_pending()) + gtk_main_iteration(); } /* Send the footer to the server */