[polari] chatView: Slightly move mark for line-indicator



commit 83e7b0e1605b107d357791b49a73b46bb0865956
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Oct 30 23:52:48 2013 +0100

    chatView: Slightly move mark for line-indicator
    
    When marking a highlighted message, we want the mark at the end of
    the newly inserted text, so we'll actually show the unread message
    when scrolling it in view; the line indicator on the other hand
    should appear above the entire message, which might be a different
    display line when the message is wrapped. Set the mark on the start
    of the line to get the right position.

 src/chatView.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 54f4fd1..b662e9f 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -484,6 +484,8 @@ const ChatView = new Lang.Class({
             }
 
             if (this._needsIndicator) {
+                iter.set_line_offset(0);
+
                 let mark = buffer.get_mark('indicator-line');
                 if (!mark)
                     buffer.create_mark('indicator-line', iter, true);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]