Am using Inkscape 0.48.0 r9654 on WinXP and running into an issue that I'm hoping someone can help out with. I have a number of straight lines of various orientations. I want to apply a linear gradient to them, and I want to have the linear gradient exactly congruent to the line itself - that is, the gradient should start at one end of the line and end at the other.
Inserting the linear gradient is fine, but Inkscape defaults to a horizontal linear gradient no matter what. For vertical lines, this looks totally stupid - my lines are 4 pixels wide so you can barely see this, basically it makes them look a bit thinner and blurry on one side. More generally, for everything but horizontal lines it means I have to go in and manually drag the gradient nodes to where I want them. Worse yet, there is no "snap to shape" feature I have located that lets me position the gradient node right at the end of the line, so if I want to be precise this ends up being incredibly tedious

Surely what I want to do should not be this painful; what am I missing? Thanks in advance,
Arc_Light