// ATM as each file is processed the screen is not updated (no mechanism exposed to a_dems_load_list)
// Thus force draw only at the end, as loading is complete/aborted
- //gdk_threads_enter();
// Test is helpful to prevent Gtk-CRITICAL warnings if the program is exitted whilst loading
if ( IS_VIK_LAYER(dltd->vdl) )
- vik_layer_emit_update ( VIK_LAYER(dltd->vdl) ); // NB update from background thread
- //gdk_threads_leave();
+ vik_layer_emit_update ( VIK_LAYER(dltd->vdl) ); // NB update requested from background thread
return result;
}
else
return;
- //gdk_threads_enter();
g_mutex_lock ( p->mutex );
if ( p->vdl ) {
g_object_weak_unref ( G_OBJECT(p->vdl), weak_ref_cb, p );
if ( dem_layer_add_file ( p->vdl, p->dest ) )
- vik_layer_emit_update ( VIK_LAYER(p->vdl) ); // NB update from background thread
+ vik_layer_emit_update ( VIK_LAYER(p->vdl) ); // NB update requested from background thread
}
g_mutex_unlock ( p->mutex );
- //gdk_threads_leave();
}