[polari] mainWindow: Add missing return value
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] mainWindow: Add missing return value
- Date: Fri, 28 Nov 2014 18:59:43 +0000 (UTC)
commit 8be5b68636d0889bd027ea6cdaee9dc2ae9453c0
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Nov 28 15:27:36 2014 +0000
mainWindow: Add missing return value
There's nothing to bubble up to from a toplevel widget, but it's
still cleaner to return an explicit value when expected.
src/mainWindow.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 90b0627..0cefb5f 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -88,9 +88,9 @@ const MainWindow = new Lang.Class({
this.window.connect_after('key-press-event', Lang.bind(this,
function(w, event) {
let [, keyval] = event.get_keyval();
- if (keyval == Gdk.KEY_Escape) {
+ if (keyval == Gdk.KEY_Escape)
this._selectionModeAction.change_state(GLib.Variant.new('b', false));
- }
+ return Gdk.EVENT_STOP;
}));
this.window.connect('window-state-event',
Lang.bind(this, this._onWindowStateEvent));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]