GNOME Bugzilla – Bug 470729
Display screen position on the bars to the left and right
Last modified: 2011-12-20 20:29:06 UTC
Hello, On the left and the right sides are displayed little colored lines that represent changes. Would it be possible to have rectangles or somesuch track the position of the screen on those bars also? Thank you, Meld is a really useful tool.
The change blocks line up pretty well with the scrollbars. I wanted to draw the blocks inside the scrollbar gutter, but there was some pygtk api missing at the time. Perhaps that can be revisited.
Hmm what I meant was something to track your position on the change blocks? Right now, the scrollbars allow you to track your progress through the text file, but is it possible to have something that'll allow you to track progress through the change blocks.
The top and the bottom of the scrollbar slider line up with the region of change blocks you're currently viewing. Isn't that a coarse approximation of what you are looking for?
Well yes it is. But do you think it would be possible to get an exact one? Low priority but it'd be really helpful :).
I have a private branch that does this, as well as making the change bars real GtkWidgets, porting the rendering to cairo and a few other small changes. Unfortunately, my development machine kicked the bucket recently, so while code exists, I can't current fix it for inclusion. If anyone else wants to work on this before I can get working again, I'll happily send code.
On this, I had thought about putting the change bars into the gutter of the scrollbar. It saves some horizontal space, means the middle pane gets change bar in 3way and hopefully makes the relationship between the scrollbar/change bar more obvious.
Putting change bars in the scrollbar, apart from being a fair bit of work, could be really tricky to get right with different themeing, and might make the changes more difficult to see. Also, the scroll-handle will inevitably cover up the currently viewed area. On the other hand, it does save some space. As for the change bar in 3-way... wouldn't you need *two* change bars if you wanted to add them to the middle pane?
Even if it was just a black rectangle, that would be fine. Because atm it's like a scrollbar without the thing you can press on to scroll. So you have no idea what is your position within a document.
Created attachment 118358 [details] [review] Work-in-progress patch Attaching a work-in-progress version of a patch which fixes this bug. It also provides more accurate offset calculations by taking into account borders, stepper sizing and other style properties of the scrollbars. In addition, it automatically adjusts to visibility of scrollbars within a gtk.ScrolledWindow, meaning that scrollbar visibility can be set to auto, fixing bug 540668. There is still a lot of work to be done, including using style properties, coming up with nice defaults for colours, etc., and in general deciding whether the other visual changes I've made to the change bars are actually any good.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.