[polari/gnome-3-16] chatView: Add missing return values to ::draw vfunc
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/gnome-3-16] chatView: Add missing return values to ::draw vfunc
- Date: Thu, 30 Jul 2015 10:18:08 +0000 (UTC)
commit 6b0b2c1d665999a754bf685b1ac236a4d54f0094
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 3953bfc..bccbdb3 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -55,7 +55,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);
@@ -67,17 +67,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]