[polari] chatView: Add missing return values to ::draw vfunc



commit fc48b46077f59b4970d3f39f66f5fb099f65d2b5
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 30 02:57:48 2015 +0200

    chatView: Add missing return values to ::draw vfunc
    
    Nothing connects to the ::draw signal, so this doesn't make any
    difference in practice and is purely for correctness.

 src/chatView.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 49e6517..e64fe03 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -57,7 +57,7 @@ const TextView = new Lang.Class({
 
         let mark = this.buffer.get_mark('indicator-line');
         if (!mark)
-            return;
+            return Gdk.EVENT_PROPAGATE;
 
         let iter = this.buffer.get_iter_at_mark(mark);
         let location = this.get_iter_location(iter);
@@ -69,17 +69,19 @@ const TextView = new Lang.Class({
 
         let [hasClip, clip] = Gdk.cairo_get_clip_rectangle(cr);
         if (!hasClip)
-            return;
+            return Gdk.EVENT_PROPAGATE;
 
         if (clip.y > y - lineSpace + 1 ||
             clip.y + clip.height < y - lineSpace)
-            return;
+            return Gdk.EVENT_PROPAGATE;
 
         Gdk.cairo_set_source_rgba(cr, this._dimColor);
         cr.rectangle(MARGIN, y - lineSpace,
                      this.get_allocated_width() - 2 * MARGIN, 1);
         cr.fill();
         cr.$dispose();
+
+        return Gdk.EVENT_PROPAGATE;
     },
 
     _onMarkSet: function(buffer, iter, mark) {


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